QPx_GetAreaImageFile(areaRef; areaRef):error
areaRef Longint QPix area reference
imagePath Text Path of image file being displayed
error Longint Error result

Get the image file being displayed in a QPix area

The QPix plug-in area is specified by areaRef. If areaRef is not a valid QPix plug-in area reference, qpx_paramErr is returned.

The image file being displayed is returned in imagePath. If areaRef is not currently displaying an image file, imagePath is set to empty and the qpx_paramErr error code is returned.


   // Get the full pathname of the image file displayed in area


$error:=QPx_GetAreaImageFile (gQPixArea;$imagePath)

If ($error=qpx_noErr)
      // $imagePath contains the pathname
End if 

Related commands

QPx_SetAreaImageFile Display an image file in a QPix area