GFL_LOAD_PARAMS
The GFL_LOAD_PARAMS structure contains options for picture loading.
typedef struct (
GFL_UINT32 Flags,
GFL_INT32 FormatIndex,
GFL_INT32 ImageWanted,
GFL_ORIGIN Origin,
GFL_BITMAP_TYPE ColorModel,
GFL_UINT32 LinePadding,
GFL_UINT8 DefaultAlpha,
GFL_UINT8 Reserved1,
GFL_UINT16 Reserved2,
GFL_INT32 Width,
GFL_INT32 Height,
GFL_UINT32 Offset,
GFL_CORDER ChannelOrder,
GFL_CTYPE ChannelType,
GFL_UINT16 PcdBase,
GFL_UINT16 EpsDpi,
GFL_INT32 EpsWidth,
GFL_INT32 EpsHeight,
GFL_READ_CALLBACK Read,
GFL_TELL_CALLBACK Tell,
GFL_SEEK_CALLBACK Seek
} GFL_LOAD_PARAMS
Members
- Flags
-
Options
GFL_LOAD_SKIP_ALPHA | If the picture has an alpha channel, it is ignored |
GFL_LOAD_IGNORE_READ_ERROR | Ignore all read errors |
GFL_LOAD_BY_EXTENSION_ONLY | Use only extension to recognize the filetype |
GFL_LOAD_READ_ALL_COMMENT | Read all comment in the file |
GFL_LOAD_FORCE_COLOR_MODEL | ColorModel is used for the picture type |
GFL_LOAD_PREVIEW_NO_CANVAS_RESIZE | Keep the ratio for the preview |
GFL_LOAD_BINARY_AS_GREY | Load a binary file in 8bits |
GFL_LOAD_ORIGINAL_COLORMODEL | If the color model of the file is CMYK, so the picture loaded will be in CMYK |
GFL_LOAD_ONLY_FIRST_FRAME | If the color model of the file is CMYK, so the picture loaded will be in CMYK |
GFL_LOAD_ORIGINAL_DEPTH | If the file has more than 8 bits per component, keep it |
GFL_LOAD_METADATA | Read all metadata (IPTC & EXIF) |
GFL_LOAD_COMMENT | Read comment |
GFL_LOAD_HIGH_QUALITY_THUMBNAIL | Use high quality for gflLoadThumbnail |
- FormatIndex
-
Index of the format used to load.
Default value : -1 (for an automatic recognition).
- ImageWanted
-
For a multi-page file, identifies the image number.
Default value : 0
- Origin
-
Origin wanted.
GFL_TOP_LEFT | Top left |
GFL_BOTTOM_LEFT | Bottom left |
GFL_TOP_RIGHT | Top right |
GFL_BOTTOM_RIGHT | Bottom right |
Default value : GFF_TOP_LEFT
- ColorModel
-
Color Model wanted.
GFL_RGB | True colors - Red/Green/Blue (24 bits) |
GFL_BGR | True colors - Blue/Green/Red (24 bits) |
GFL_RGBA | True colors - Red/Green/Blue/Alpha (32 bits) |
GFL_ABGR | True colors - Alpha/Blue/Green/Red (32 bits) |
GFL_BGRA | True colors - Blue/Green/Red/Alpha (32 bits) |
GFL_ARGB | True colors - Red/Green/Blue/Alpha (32 bits) |
Default value : GFL_RGB
- LinePadding
-
Pad for a pixels line (For example, a value of 4 allow a line padding on 32bits).
Default value : 1
- DefaultAlpha
-
Alpha value to use when the picture is loaded in 32bits, but the original file doesn't have an alpha.
Default value: Black
- Width
-
For RAW or YUV format, width of picture.
- Height
-
For RAW or YUV format, height of picture.
- Offset
-
For RAW or YUV format, offset of the picture in the file.
- ChannelOrder
-
For RAW format, channel order of the components.
GFL_CORDER_INTERLEAVED | Interleaved |
GFL_CORDER_SEQUENTIAL | Sequential |
GFL_CORDER_SEPARATE | Separate |
- ChannelType
-
For RAW format, channel type of the components.
GFL_CTYPE_GREYSCALE | Greyscale |
GFL_CTYPE_RGB | Red-Green-Blue |
GFL_CTYPE_BGR | Blue-Green-Red |
GFL_CTYPE_RGBA | Red-Green-Blue-Alpha |
GFL_CTYPE_ABGR | Alpha-Blue-Green-Red |
GFL_CTYPE_CMY | Cyan-Magenta-Yellow |
GFL_CTYPE_CMYK | Cyan-Magenta-Yellow-Black |
- PcdBase
-
For PCD format, it's the base used.
0 | 192x144 |
1 | 384x288 |
2 | 768x576 |
- EpsDpi
-
For PS/EPS format, dpi to be used for loading.
- EpsWidth
-
For PS/EPS format, width to be used for loading.
- EpsHeight
-
For PS/EPS format, height to be used for loading.
- Read
-
Pointer to a read user function.
- Tell
-
Pointer to a tell user function.
- Seek
-
Pointer to a seek user function.
See also