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.


  `Get image in 4D picture
$error:=QMed_ImportImage (gImageRef;$pict)
If ($error # qmed_noErr)
   `Handle the error
End if

QMedical © Escape
Generated by QDoc 2.8 on Wed, Jan 27, 2010 17:54:34