Blend2D
2D Vector Graphics Engine
2D raster image [C++ API].
Create a deep copy of the other
image.
Tests whether the image is empty (has no size).
Create a new image of a specified width w
, height h
, and format
.
BL_ERROR_INVALID_VALUE
result will be returned and no data will be allocated. It's also important to notice that BLImage::create()
would not change anything if the function fails (the previous image content would be kept as is). BL_DATA_ACCESS_RW
, BLDestroyExternalDataFunc destroyFunc = nullptr
, void* userData = nullptr
)◆ Create a new image from external data.
Returns image width.
Returns image height.
Returns image size.
Returns image format, see BLFormat
.
Returns image depth, in bits.
Returns immutable in dataOut
, which contains pixel pointer, stride, and other image properties like size and pixel format.
pixelData
pointer, the data is immutable. If you intend to modify the data, use makeMutable() function instead, which would copy the image data if it's shared with another BLImage instance. Makes the image data mutable and returns them in dataOut
.