QPx_CountImporterFrames
QPx_CountImporterFrames(importerRef; importerRef):error | |||
---|---|---|---|
![]() |
importerRef | Longint | Graphics importer reference |
![]() |
numFrames | Longint | Number of frames |
![]() |
error | Longint | Error result |
Get the number of frames of a multi-frame image
Some file formats may contain multiple frames in a single file. QPix currently supports the following multi-frame file formats:
- JPEG files with embedded thumbnails (Exif)
- TIFF files with embedded thumbnails
- TIFF files with multiple pages
- Photoshop files with multiple layers
- FlashPix files with multiple resolutions
- PhotoCD files with multiple resolutions
- PDF files with multiple pages (requires GhostScript on Windows)
The command returns the number of frames contained in the image (file, URL, or BLOB) that is associated with importer instance importerRef. If importerRef is not a reference to a valid graphics importer instance, error qpx_paramErr is returned.
Parameter numFrames receives the number of frames.
NOTE Individual frames in a multi-frame image may have different characteristics (width, height, pixel depth, etc).