ConvColorDIBtoGrayscale  Method

Description         Converts color image to grayscale.

Usage                  NewDib = [IMG.]ConvColorDIBtoGrayscale Dib Method Psychovisual

Remarks             NewDib                  LONGLONG The converted device independent bitmap.

                            Dib                          LONGLONG Device independent bitmap to convert.

                            Method                   Integer             Method of conversion. The following values are defined:

                                                                  imgatNoAntialiasing    No antialiasing.

                                                                  imgatAntialiasing33     Antialiasing with 3x3 resample area.

                                                                  imgatAntialiasing55     Antialiasing with 5x5 resample area.

                            Psychovisual          Boolean           Determines the computation of pixel luminance.

                                                                  False               The resulting (gray) pixel value is the simple average of color components.

                                                                  True                The resulting (gray) pixel value is the weighted sum of  ‘red’, ‘green’ and ‘blue’ components.