GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / ConvertTo8BppGrayScaleAdv Method
GdPicture image identifier.





In This Topic
ConvertTo8BppGrayScaleAdv Method (GdPictureImaging)
In This Topic
Converts a GdPicture image to an 8-bit gray-scaled indexed color image. This method uses an advanced grayscale color reduction algorithm. The color table has 256 entries.
Syntax
'Declaration
 
Public Function ConvertTo8BppGrayScaleAdv( _
   ByVal ImageID As Integer _
) As GdPictureStatus
public GdPictureStatus ConvertTo8BppGrayScaleAdv( 
   int ImageID
)
public function ConvertTo8BppGrayScaleAdv( 
    ImageID: Integer
): GdPictureStatus; 
public function ConvertTo8BppGrayScaleAdv( 
   ImageID : int
) : GdPictureStatus;
public: GdPictureStatus ConvertTo8BppGrayScaleAdv( 
   int ImageID
) 
public:
GdPictureStatus ConvertTo8BppGrayScaleAdv( 
   int ImageID
) 

Parameters

ImageID
GdPicture image identifier.

Return Value

A member of the GdPictureStatus enumeration.
Remarks

The algorithm used uses the following formula based on the rgb color channel values 0.2126F * r + 0.7152F * g + 0.0722F * b.

Greyscaling narutal images works better with this method than with ConvertTo8BppGrayScale().

This method requires the Image Documents component to run.

See Also