Blend2D
2D Vector Graphics Engine
Pixel converter [C++ API].
Provides an interface to convert pixels between various pixel formats. The primary purpose of this class is to allow efficient conversion between pixel formats used natively by Blend2D and pixel formats used elsewhere, for example image codecs or native framebuffers.
isInitialized()
member function to test whether the pixel converter was properly initialized. Creates a new default-initialized pixel converter.
Creates a copy of the other
converter.
If the other
converter has dynamically allocated resources they will be properly managed (reference counting). Only very specific converters require such resources so this operation should be considered very cheap.
Destroys the pixel-converter and releases all resources allocated by it.
Tests whether if the converter is initialized.
Assigns the other
pixel converter into this one.
Creates a new pixel converter that will convert pixels described by srcInfo
into pixels described by dstInfo
.
Use createFlags
to further specify the parameters of the conversion.
BL_ERROR_INVALID_VALUE
would be returned. Converts a single span of pixels of w
width.