ultralight v0.3.0 (2023-08-31T02:52:36Z)
Dub
Repo
Bitmap.fromPixels
ultralight
Bitmap
Create bitmap from existing pixel buffer.
class
Bitmap
static
Bitmap
fromPixels
(
uint
width
,
uint
height
,
BitmapFormat
format
,
uint
row_bytes
,
ubyte
[]
pixels
,
bool
should_copy
= true
)
Meta
Source
See Implementation
ultralight
Bitmap
constructors
this
destructors
~this
functions
bpp
erase
format
height
isEmpty
lockPixels
ownsPixels
rawPixels
rowBytes
size
swapRedBlueChannels
unlockPixels
width
writePng
static functions
fromCopy
fromPixels
variables
ptr
Create bitmap from existing pixel buffer.