pdfScaleCoords
Concatenate a scale transform (independent X/Y factors, pivot
BOOL32 __stdcall pdfScaleCoords(PPDF IPDF, double sx, double sy);
function pdfScaleCoords(const IPDF: PPDF; sx, sy: Double): LongBool; stdcall;
Purpose. Concatenate a scale transform (independent X/Y factors, pivot fixed at the current coordinate origin) onto the current transform.
Description. Applies [sx 0 0 sy 0 0] via the same cm-emit pattern. Unlike pdfRotateCoords/pdfSkewCoords, there is no pivot-point parameter — scaling is always relative to (0,0) in the current coordinate system; to scale about an arbitrary pivot, a caller must bracket this call with translations (or use pdfSetMatrix with a precomputed matrix).
Parameters.
| Parameter | Description |
|---|---|
IPDF | Document handle. |
sx, sy | Scale factors along X and Y; 1.0 = no change, negative values mirror that axis. |
Return value. True on success; False if there is no current content stream.
See also. pdfRotateCoords.
C# (P/Invoke)
[return: MarshalAs(UnmanagedType.Bool)]
Core
pdfScaleCoords
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.