API referenceGraphics

pdfSkewCoords

Concatenate a shear (skew) transform — independent X-tilt

C
BOOL32 __stdcall pdfSkewCoords(PPDF IPDF, double alpha, double beta, double OriginX, double OriginY);
Delphi
function pdfSkewCoords(const IPDF: PPDF; alpha, beta, OriginX, OriginY: Double): LongBool; stdcall;

Purpose. Concatenate a shear (skew) transform — independent X-tilt (alpha) and Y-tilt (beta) angles, pivoted at (OriginX, OriginY) — onto the current transform.

Description. Computes tan(alpha)/tan(beta) (degrees→radians) and applies [1 tanBeta tanAlpha 1 -OriginY*tanAlpha -OriginX*tanBeta] via the same cm-emit pattern. Note the parameter-to-axis mapping: alpha controls the X-shear (how far X coordinates lean as a function of Y) and beta controls the Y-shear — the origin offsets are cross-wired accordingly (OriginY feeds the alpha/X term, OriginX feeds the beta/Y term), matching the geometry of a shear about a fixed pivot rather than a naming mistake.

Parameters.

ParameterDescription
IPDFDocument handle.
alphaX-shear angle in degrees.
betaY-shear angle in degrees.
OriginX, OriginYPivot point held fixed under the shear.

Return value. True on success; False if there is no current content stream.

See also. pdfRotateCoords, pdfScaleCoords.

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Graphics
Category

Core

Exported names

pdfSkewCoords

String variants

The …A form takes UTF-8, …W takes UTF-16; a bare name aliases the ANSI form.

See working code

Worked examples — complete programs in ten languages.