Function qt_gui::q_pixel_format_alpha_1a
source · pub unsafe fn q_pixel_format_alpha_1a(
channel_size: c_uchar
) -> CppBox<QPixelFormat>
Expand description
Constructor function for creating an Alpha format. A mask format can be described by passing 1 to channelSize. Its also possible to define very accurate alpha formats using doubles to describe each pixel by passing 8 as channelSize and FloatingPoint as typeInterpretation.
Calls C++ function: QPixelFormat qPixelFormatAlpha(unsigned char channelSize)
.
Constructor function for creating an Alpha format. A mask format can be described by passing 1 to channelSize. Its also possible to define very accurate alpha formats using doubles to describe each pixel by passing 8 as channelSize and FloatingPoint as typeInterpretation.
This function was introduced in Qt 5.5.
See also QPixelFormat::TypeInterpretation.