Click or drag to resize

ImageCompressorQuantizeTo8bpp Method (Image)

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Reduce file size by converting a 32bpp palletized map to an 8bpp indexed map.

Namespace:  Telogis.GeoBase.ImageUtils
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public static Bitmap QuantizeTo8bpp(
	Image img
)

Parameters

img
Type: System.DrawingImage
The 32bit source Image.

Return Value

Type: Bitmap
A 8bit map.
Remarks
Use of this method will generally give a 25-50 percent reduction in file size when saved as a PNG. You should Dispose of the source image if you are no longer using it.
If your map has more than 256 colors the "best fit" pallette will be found.
See Also