tida ~master (2021-10-06T18:27:09Z)
Home
Dub
Repo
Image.bytes
tida
image
Image
Accepts bytes as data for an image.
ubyte
[]
bytes
()
void
bytes
(ubyte[] data)
class
Image
@
safe
nothrow pure
void
bytes
(
int
format
=
PixelFormat.RGBA
)
(
ubyte
[]
data
)
in (validateImageData!format(data, _width, _height))
Parameters
data
ubyte
[]
Image data.
Meta
Source
See Implementation
tida
image
Image
constructors
this
destructors
~this
functions
allocatePlace
blit
bytes
copy
draw
drawEx
empty
fill
freeData
getPixel
load
resize
scale
setPixel
toTexture
toTextureWithoutShape
properties
dup
height
pixels
texture
width
Accepts bytes as data for an image.