SetMeasureDictPDU
Measurement and coordinate units
Description
Sets the page display units of a measurement dictionary.
Syntax
Delphi
function TPDFlib.SetMeasureDictPDU(MeasureDictID, LinearUnit, AreaUnit, AngularUnit: Integer): Integer;ActiveX
Function PDFlib::SetMeasureDictPDU(MeasureDictID As Long, LinearUnit As Long, AreaUnit As Long, AngularUnit As Long) As LongDLL
int DLSetMeasureDictPDU(int InstanceID, int MeasureDictID, int LinearUnit, int AreaUnit, int AngularUnit);Parameters
| MeasureDictID | A value returned from the GetImageMeasureDict function 1 = M (a meter) 2 = KM (a kilometer) 3 = FT (an international foot) 4 = USFT (a U.S. Survey foot) 5 = MI (an international mile) 6 = NM (an international nautical mile) |
|---|---|
| LinearUnit | |
| AreaUnit | 1 = SQM (a square meter) 2 = HA (a hectare = 10,000 square meters) 3 = SQKM (a square kilometer) 4 = SQFT (a square foot) 5 = A (an acre) 6 = SQMI (a square mile) |
| AngularUnit | 1 = DEG (a degree) 2 = GRD (a grad = 0.9 degrees) |
Return values
| 0 | The MeasureDictID parameter was incorrect or one of the other parameters was out of range. |
|---|---|
| 1 | Success |