LoadInfoFlags property (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

Cardinal LoadInfoFlags

Delphi Syntax

LoadInfoFlags: Cardinal

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.

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

0

Clear the flags, defaulting to their opposite meanings.

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 rgbQuad field. (raw data only)

LOADINFO_BITFIELDS

3 color masks are specified in the rgbColorMask field. This is for raw Bitfield compressed data only.

LOADINFO_ORDERGRAY

Image is grayscale.

LOADINFO_MOTOROLAORDER

Image bytes are in Motorola byte order. Valid only for 16, 48 and 64-bit.)

See Also

Elements:

OnLoadInfo event, LoadInfoBits property, LoadInfoFormat property, LoadInfoHeight property, LoadInfoOffset property, LoadInfoWidth property, LoadInfoXRes property, LoadInfoYRes property, EnableLoadInfoEvent property

Topics:

Raster Images: Loading Files