ColorDrawBuf

Undocumented in source.

Constructors

this
this(int width, int height)

create ARGB8888 draw buf of specified width and height

this
this(ColorDrawBuf v)

create copy of ColorDrawBuf

this
this(ColorDrawBuf v, int dx, int dy)

create resized copy of ColorDrawBuf

Members

Functions

blur
void blur(uint blurSize)

Apply Gaussian blur on the image

fill
void fill(uint color)
Undocumented in source. Be warned that the author may not have intended to support it.
invertAlpha
void invertAlpha()
Undocumented in source. Be warned that the author may not have intended to support it.
invertAlphaAndByteOrder
void invertAlphaAndByteOrder()
Undocumented in source. Be warned that the author may not have intended to support it.
invertAndPreMultiplyAlpha
void invertAndPreMultiplyAlpha()
Undocumented in source. Be warned that the author may not have intended to support it.
invertByteOrder
void invertByteOrder()
Undocumented in source. Be warned that the author may not have intended to support it.
resize
void resize(int width, int height)
Undocumented in source. Be warned that the author may not have intended to support it.
scanLine
uint* scanLine(int y)
Undocumented in source. Be warned that the author may not have intended to support it.
transformColors
DrawBuf transformColors(ColorTransform transform)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_buf
MallocBuf!uint _buf;
Undocumented in source.

Inherited Members

From ColorDrawBufBase

_dx
int _dx;
Undocumented in source.
_dy
int _dy;
Undocumented in source.
bpp
int bpp [@property getter]

returns buffer bits per pixel

width
int width [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
height
int height [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
scanLine
uint* scanLine(int y)

returns pointer to ARGB scanline, null if y is out of range or buffer doesn't provide access to its memory

drawFragment
void drawFragment(int x, int y, DrawBuf src, Rect srcrect)

draw source buffer rectangle contents to destination buffer

drawRescaled
void drawRescaled(Rect dstrect, DrawBuf src, Rect srcrect)

draw source buffer rectangle contents to destination buffer rectangle applying rescaling

isBlackPixel
bool isBlackPixel(uint c)
Undocumented in source. Be warned that the author may not have intended to support it.
detectNinePatch
bool detectNinePatch()

detect nine patch using image 1-pixel border (see Android documentation)

drawGlyph
void drawGlyph(int x, int y, Glyph* glyph, uint color)
Undocumented in source. Be warned that the author may not have intended to support it.
drawGlyphToTexture
void drawGlyphToTexture(int x, int y, Glyph* glyph)
Undocumented in source. Be warned that the author may not have intended to support it.
fillRect
void fillRect(Rect rc, uint color)
Undocumented in source. Be warned that the author may not have intended to support it.
fillGradientRect
void fillGradientRect(Rect rc, uint color1, uint color2, uint color3, uint color4)

fill rectangle with a gradient (clipping is applied)

fillRectPattern
void fillRectPattern(Rect rc, uint color, int pattern)

fill rectangle with solid color and pattern (clipping is applied) 0=solid fill, 1 = dotted

drawPixel
void drawPixel(int x, int y, uint color)

draw pixel at (x, y) with specified color

Meta