Function qt_gui::q_pixel_format_alpha_2a
source · pub unsafe fn q_pixel_format_alpha_2a(
channel_size: c_uchar,
type_int: TypeInterpretation
) -> 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, QPixelFormat::TypeInterpretation typeInt = …)
.
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.