GFL_LOAD_PARAMS

GFL SDK

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_ALPHAIf the picture has an alpha channel, it is ignored
    GFL_LOAD_IGNORE_READ_ERRORIgnore all read errors
    GFL_LOAD_BY_EXTENSION_ONLYUse only extension to recognize the filetype
    GFL_LOAD_READ_ALL_COMMENTRead all comment in the file
    GFL_LOAD_FORCE_COLOR_MODELColorModel is used for the picture type
    GFL_LOAD_PREVIEW_NO_CANVAS_RESIZEKeep the ratio for the preview
    GFL_LOAD_BINARY_AS_GREYLoad a binary file in 8bits
    GFL_LOAD_ORIGINAL_COLORMODELIf the color model of the file is CMYK, so the picture loaded will be in CMYK
    GFL_LOAD_ONLY_FIRST_FRAMEIf the color model of the file is CMYK, so the picture loaded will be in CMYK
    GFL_LOAD_ORIGINAL_DEPTHIf the file has more than 8 bits per component, keep it
    GFL_LOAD_METADATARead all metadata (IPTC & EXIF)
    GFL_LOAD_COMMENTRead comment
    GFL_LOAD_HIGH_QUALITY_THUMBNAILUse 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_LEFTTop left
    GFL_BOTTOM_LEFTBottom left
    GFL_TOP_RIGHTTop right
    GFL_BOTTOM_RIGHTBottom right
    Default value : GFF_TOP_LEFT
    ColorModel
    Color Model wanted.
    GFL_RGBTrue colors - Red/Green/Blue (24 bits)
    GFL_BGRTrue colors - Blue/Green/Red (24 bits)
    GFL_RGBATrue colors - Red/Green/Blue/Alpha (32 bits)
    GFL_ABGRTrue colors - Alpha/Blue/Green/Red (32 bits)
    GFL_BGRATrue colors - Blue/Green/Red/Alpha (32 bits)
    GFL_ARGBTrue 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_INTERLEAVEDInterleaved
    GFL_CORDER_SEQUENTIALSequential
    GFL_CORDER_SEPARATESeparate
    ChannelType
    For RAW format, channel type of the components.
    GFL_CTYPE_GREYSCALEGreyscale
    GFL_CTYPE_RGBRed-Green-Blue
    GFL_CTYPE_BGRBlue-Green-Red
    GFL_CTYPE_RGBARed-Green-Blue-Alpha
    GFL_CTYPE_ABGRAlpha-Blue-Green-Red
    GFL_CTYPE_CMYCyan-Magenta-Yellow
    GFL_CTYPE_CMYKCyan-Magenta-Yellow-Black
    PcdBase
    For PCD format, it's the base used.
    0192x144
    1384x288
    2768x576
    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