tida v0.1.3 (2022-04-24T19:31:37Z)
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), "The number of bytes is not a multiple of the image size.")
Parameters
data
ubyte
[]
Image data.
Meta
Source
See Implementation
tida
image
Image
constructors
this
destructors
~this
functions
allocatePlace
bind
blit
bytes
copy
draw
drawEx
drawning
empty
fill
freeData
getPixel
load
opIndex
resize
scale
scanline
scanlines
setPixel
toTexture
toTextureWithoutShape
unbind
properties
dup
height
pixels
texture
width
Accepts bytes as data for an image.