LoadInfoFlags property (Main Control)

Visual Basic example
Visual C++ 4.0 example

Access 2.0 example

Access 95, 97 example
Visual J++ example

Syntax 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. LOADINFO_ORDERGRAY allows the CreateBitmap method to create a 16-bit grayscale image.

Flag

Meaning

LOADINFO_TOPLEFT

[0x00000001] The image has a TOP_LEFT view perspective.

LOADINFO_ORDERRGB

[0x00000002] The color order is RGB.

LOADINFO_WHITEONBLACK

[0x00000004] The image is white-on-black.

LOADINFO_LSB

[0x00000008] The least significant bit is filled first.

LOADINFO_TOPLEFT90

[0x00000010] The image has a TOP_LEFT90 view perspective. (Document/Medical only).

LOADINFO_TOPLEFT270

[0x00000020] The image has a TOP_LEFT270 view perspective. (Document/Medical only).

LOADINFO_REVERSE

[0x00000040] 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

[0x00001000] A palette is supplied in the UserPalette property. (raw data only)

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.)

0

Clear the flags, defaulting to their opposite meanings.

See Also

Elements:  LoadInfo event, LoadInfoBits property, LoadInfoFormat property, LoadInfoHeight property, LoadInfoOffset property, LoadInfoWidth property, LoadInfoXRes property, LoadInfoYRes property

Topics:  Raster Images: Loading Files