LZWAutoClear property (ILEADRasterIO)

Visual Basic example

Visual C++ example

 

Syntax

VARIANT_BOOL LZWAutoClear

Overview

Refer to Saving a Bitmap to a File.

Remarks

Enables or disables automatically inserting CLEAR codes during LZW compression. Possible values are:

Setting

Description

TRUE

Enables automatically inserting CLEAR LZW codes and resets the LZW compression engine if the compression ratio is not adequate. This is the default value.

FALSE

Disables automatically inserting CLEAR LZW codes, and saves TIFF LZW files compatible with some buggy LZW decoders that cannot handle early CLEAR codes.

Some IBM decoders are known to have this problem. They will not decode the LEAD TIFF LZW files unless the user sets the value of this property to FALSE.

See Also

Elements:

Load method, LoadStamp method, BitmapDataPath method, LoadMemory method, StartFeedLoad method, LoadInfo event, LoadOffset method

Topics:

Raster Images: Saving Files