ImageGear Professional for Windows ActiveX
Promote Method

Description:

Promotes a 1, 4, or 8-bit image to 24 bits or 32 bits, or a 1 or 4-bit image to 8 bits, or a 1-bit image to 4 bits.

The width and height of the image are not changed. Only the number of Bits Per Pixel are increased. Colors are not changed. The same color is used for each new pixel as was used in the original.

When promoting to 24-bit, levels of gray and white may appear to be slightly colored when displayed. This is due to using a common 8-bit palette to display a 24-bit color image. The actual 24-bit pixel values are correct.

Syntax:

      Promote (ByVal pPage As IGPage, ByVal promMode As
enumIGPromotionModes)

Parameters:

Name Description
pPage Reference to IGPage Object.
promMode Specifies the promote mode.

Return Value:

N/A

Bits Per Pixel:

1, 4, 8, 9-16-bit gray level, 32

Sample:

Image Processing and Effects.

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback