QPix Command Reference
![]() |
![]() ![]() |
QPx_SetPictureResolution(pictVar; hRes; vRes):error | |||
![]() |
pictVar | Picture | Picture variable |
![]() |
hRes | Longint | Horizontal resolution |
![]() |
vRes | Longint | Vertical resolution |
![]() |
error | Longint | Error result |
Changes the horizontal and vertical resolution of a picture variable.
The source picture is passed in the pictVar parameter. The source picture may be compressed or uncompressed. The modified picture is also returned in the pictVar parameter and it is always uncompressed.
The horizontal and vertical resolutions are specified by the hRes and vRes parameters respectively.
Example
`Set picture res to 300 dpi C_PICTURE($picture) C_LONGINT($horzRes;$vertRes) C_LONGINT($error) $picture:=[Images]Picture $horzRes:=300 $vertRes:=300 $error:=QPx_SetPictureResolution ($picture;$horzRes;$vertRes) If ($error#qpx_noErr) `Handle the error End if |