ImageCompressorQuantizeTo8bpp Method (Image, Color) | |
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,
Color[] remap
)
Public Shared Function QuantizeTo8bpp (
img As Image,
remap As Color()
) As Bitmap
Parameters
- img
- Type: System.DrawingImage
The 32bit source Image. - remap
- Type: System.DrawingColor
A list of colors to find nearest approximations for in the new image. These will be modified in place
Return Value
Type:
BitmapA 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