QPx_GetImporterFrameType(importerRef; importerRef; importerRef):error
importerRef Longint Graphics importer reference
frameIndex Longint Frame index
frameType Longint Frame type
error Longint Error result

Get the type of a frame in a multi-frame image

The graphics importer instance is specified by importerRef. If importerRef is not a reference to a valid graphics importer instance, error qpx_paramErr is returned.

Parameter frameIndex specifies the frame number for which to return information. The frame index ranges from 1 to the total number of frames in the image.

Parameter frameType receives a number that denotes the type of the frame. The frame type can be a bitwise "OR" combination of the following constants:

qpx_FrameIsThumbnail 0x0001 Frame is an embedded thumbnail
qpx_FrameIsLayer 0x0002 Frame is a layer in a multi-layer image
qpx_FrameIsPage 0x0004 Frame is a page in a multi-page image
qpx_FrameIsMultiRes 0x0008 Frame is a resolution in a multi-res image

Related commands

QPx_CountImporterFrames Get the number of frames of a multi-frame image