SetScale

Measurement and coordinate units

Description

Scales the co-ordinate system for all subsequent drawing operations. A scale factor of 1 is equivalent to calling SetMeasurementUnits(0) which sets the measurement units to be Points. A scale factor of (72 / 25.4) is equivalent to calling SetMeasurementUnits(1) which sets the measurement units to be millimetres.

Syntax

Delphi

Function TPDFlib.SetScale(NewScale: Double): Integer;

ActiveX

Function PDFlib::SetScale(NewScale As Double) As Long

DLL

int DLSetScale(int InstanceID, double NewScale);

Parameters

NewScaleThe scale factor to use

Return values

1The scale factor was stored
0NewScale is zero, negative, NaN or a value whose inverse is not representable