ConvertImageTo8BitColorDepth

The ConvertImageTo8BitColorDepth method converts the image's color depth to 8 bits per pixel.

 

Syntax

object.ConvertImageTo8BitColorDepth ( GrayScale )

 

Parameter

Type

Description

GrayScale

Boolean

required; true to convert to gray scale, false to convert to 256 color

 

Example

This example changes the bitmap color depth to gray scale.

 

Bitmap.ConvertImageTo8BitColorDepth(True)

 

Used by: Bitmap object