QPx_GetAreaImporter

QPx_GetAreaImporter(areaRef; areaRef):error
areaRef Longint QPix area reference
importerRef Longint Reference to the importer used by the area
error Longint Error result

Get a reference to the graphic importer used by a QPix area

The plug-in area is referenced by areaRef. If areaRef is not a valid QPix plug-in area reference or if it is not currently using a graphics importer instance, qpx_paramErr error is returned.

Parameter importerRef receives the reference to the importer instance used by the area.

NOTE This is a low-level command. It allows access to the image characteristics and data through the QPix Graphics Importer API.

Example

   // Get the area importer

C_LONGINT($error)
C_LONGINT($areaImporter)

$error:=QPx_GetAreaImporter (gQPixArea;$areaImporter)

If ($error=qpx_noErr)
   
      // $areaImporter is the importer used internally by gQPixArea
   
End if 

Related commands

QPx_SetAreaImporter Assign a graphics importer instance to a QPix area