[−][src]Function qt_gui::q_pixel_format_grayscale_2a
pub unsafe fn q_pixel_format_grayscale_2a(
channel_size: c_uchar,
type_int: TypeInterpretation
) -> CppBox<QPixelFormat>
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 = …)
.
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.