Function qt_gui::q_pixel_format_grayscale_1a
source · pub unsafe fn q_pixel_format_grayscale_1a(
channel_size: c_uchar
) -> 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)
.
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.