Bitmap

Simple planar image implementing the Image concept. A Bitmap is mostly a triplet of (base address + dimension + stride). Data can be owned or not.

Constructors

this
this(vec2i dimension)

Creates a Bitmap with owned memory.

this
this(T* data, vec2i dimension, ptrdiff_t stride)

Creates a Bitmap from borrowed memory.

this
this(T* data, vec2i dimension)

Creates a Bitmap from borrowed contiguous memory.

this
this(AlignedBuffer!ubyte buffer, vec2i dimension)

Creates with a buffer whose lifetime should be greater than this.

Destructor

~this
~this()
Undocumented in source.

Postblit

this(this)
this(this)
Undocumented in source.

Members

Aliases

element_t
alias element_t = T
Undocumented in source.

Functions

contains
bool contains(vec2i point)
Undocumented in source. Be warned that the author may not have intended to support it.
copy
void copy(Bitmap source)

copy another Bitmap of same type and dimension

get
T get(int i, int j)
Undocumented in source. Be warned that the author may not have intended to support it.
isDense
bool isDense()
Undocumented in source. Be warned that the author may not have intended to support it.
opAssign
auto opAssign(Bitmap other)
Undocumented in source. Be warned that the author may not have intended to support it.
set
void set(int i, int j, T e)
Undocumented in source. Be warned that the author may not have intended to support it.
subImage
Bitmap subImage(vec2i position, vec2i dimension)

Properties

dimension
vec2i dimension [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
height
int height [@property getter]
ptr
T* ptr [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
ptr
const(T)* ptr [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
width
int width [@property getter]

Meta