Distance property (ILEADOptimizeOptions)

Visual Basic example

Visual C++ example

 

Syntax

long Distance;

Overview

Refer to Image Optimization.

Remarks

Gets or sets the distance between the image's colors to be reduced in the image optimization operation. This value will be used if the original image format was one of the following:

image\sqrblit.gif PNG File (FILE_PNG).

image\sqrblit.gif GIF File (FILE_GIF).

image\sqrblit.gif One of the LEAD Supported BMP Formats with 1, 4, and 8 bits per pixel only.

The Distance value can be a value between 0 and 255, where:

Value

Meaning

0

No additional reduction.

1 to 255

Further reduction based on the color distance

The default value is 8.

See Also

Elements:

JPEGQFactor property, PNGQFactor property, JPEGColorSpace property, Percent property, PickSamePalette property, DefaultOptions method, OptimizeBuffer method, OptimizeDir method.

Topics:

Optimizer: Optimization Methods