BOOL32 __stdcall pdfSkewCoords(PPDF IPDF, double alpha, double beta, double OriginX, double OriginY);
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.
| Parameter | Description |
|---|---|
IPDF | Document handle. |
alpha | X-shear angle in degrees. |
beta | Y-shear angle in degrees. |
OriginX, OriginY | Pivot 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)
[return: MarshalAs(UnmanagedType.Bool)]
Core
pdfSkewCoords
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.