API referenceGraphics

pdfScaleCoords

Concatenate a scale transform (independent X/Y factors, pivot

C
BOOL32 __stdcall pdfScaleCoords(PPDF IPDF, double sx, double sy);
Delphi
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.

ParameterDescription
IPDFDocument handle.
sx, syScale 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)

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

Core

Exported names

pdfScaleCoords

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.