pub unsafe fn q_pixel_format_grayscale_2a(
    channel_size: c_uchar,
    type_int: TypeInterpretation
) -> CppBox<QPixelFormat>
Expand description

Constructor function for creating a Grayscale format. Monochrome formats can be described by passing 1 to channelSize. Its also possible to define very accurate grayscale formats using doubles to describe each pixel by passing 8 as channelSize and FloatingPoint as typeInterpretation.

Calls C++ function: QPixelFormat qPixelFormatGrayscale(unsigned char channelSize, QPixelFormat::TypeInterpretation typeInt = …).

C++ documentation:

Constructor function for creating a Grayscale format. Monochrome formats can be described by passing 1 to channelSize. Its also possible to define very accurate grayscale formats using doubles to describe each pixel by passing 8 as channelSize and FloatingPoint as typeInterpretation.

See also QPixelFormat::TypeInterpretation.