LoadInfoFlags property (ILEADRasterIO)
long LoadInfoFlags | |
Overview |
Refer to Loading a Bitmap from a File. |
Remarks
Specifies format information about the image data to be loaded. LEADTOOLS uses these flags only if it fails to find the value in the file header. You can use this and the other LoadInfo... properties for loading raw FAX data (CCITT Group 3 or Group 4), and RAW uncompressed data.
LEADTOOLS checks the LoadInfoFormat property first. If that property has a non-zero value, it uses the other LoadInfo... property values. Keep in mind that when these values are used, LEADTOOLS does not validate the data in the file. If you want LEADTOOLS to validate the data, you must set the LoadInfoFormat property to zero.
The following are valid values. When it is appropriate, you can use a bitwise OR ( | ) to specify more than one value. In high-level languages, such as Visual Basic, use a plus (+) for a bitwise OR.
LOADINFO_TOPLEFT, LOADINFO_TOPLEFT90 and LOADINFO_TOPLEFT270 cannot be combined using the bitwise OR.
LOADINFO_REVERSE can be combined with LOADINFO_TOPLEFT, LOADINFO_TOPLEFT90 or LOADINFO_TOPLEFT270. If LOADINFO_REVERSE is set, every line is reversed before being put into the bitmap.
Flag |
Meaning |
LOADINFO_TOPLEFT |
The image has a TOP_LEFT view perspective. |
LOADINFO_ORDERRGB |
The color order is RGB. |
LOADINFO_WHITEONBLACK |
The image is white-on-black. |
LOADINFO_LSB |
The least significant bit is filled first. |
LOADINFO_TOPLEFT90 |
The image has a TOP_LEFT90 view perspective. (Document/Medical only). |
LOADINFO_TOPLEFT270 |
The image has a TOP_LEFT270 view perspective. (Document/Medical only). |
LOADINFO_REVERSE |
The image is reversed (Mirrored.) |
LOADINFO_TOPLEFT180 |
[0x00000080] The image has a TOP_LEFT180 view perspective. (Document/Medical only) |
LOADINFO_BOTTOMLEFT90 |
[0x00000100] The image has a BOTTOM_LEFT90 view perspective. (Document/Medical only) |
LOADINFO_BOTTOMLEFT180 |
[0x00000200] The image has a BOTTOM_LEFT180 view perspective. (Document/Medical only) |
LOADINFO_BOTTOMLEFT270 |
[0x00000400] The image has a BOTTOM_LEFT270 view perspective. (Document/Medical only) |
LOADINFO_PAD4 |
[0x00000800] Each line is padded to a multiple of 4 bytes (raw data only) |
LOADINFO_PALETTE |
[00001000] A palette is supplied in the IOPalette property (raw data only) |
0 |
Clear the flags, defaulting to thier opposite meanings. |
LOADINFO_BITFIELDS |
[0x00002000] 3 color masks are specified in the rgbColorMask field. This is for raw Bitfield compressed data only. |
LOADINFO_ORDERGRAY |
[0x00004000] Image is grayscale. |
LOADINFO_MOTOROLAORDER |
[0x00008000] Image bytes are in Motorola byte order. Valid only for 16, 48 and 64-bit.) |
LOADINFO_ORDERROMM |
[0x00010000] The color order is ROMM. Valid only for 24 and 48-bit.) |
See Also