QMedical Command Reference
![]() |
![]() ![]() |
QMed_ImportImage(imageRef; imagePict):error | |||
![]() |
imageRef | Longint | Reference to the image |
![]() |
imagePict | Picture | 4D picture variable |
![]() |
error | Longint | Error result |
Reads an image into a 4D picture variable. If the image has multiple frames the command applies to the currently selected frame.
The image is specified by imageRef. If imageRef is not a valid image, error qmed_paramErr is returned.
Warning! Graphics files can be very big depending on image dimensions, resolution and pixel depth. If you read image files into 4D pictures you should make sure there's enough memory available to your application. Running low on memory may lead to crashes and data loss.
Example
`Get image in 4D picture C_LONGINT($error) C_PICTURE($pict) C_LONGINT(gImageRef) $error:=QMed_ImportImage (gImageRef;$pict) If ($error # qmed_noErr) `Handle the error End if |