Win32ColorDrawBuf

Win32 context ARGB drawing buffer

Constructors

this
this(int width, int height)
Undocumented in source.
this
this(ColorDrawBuf v, int dx, int dy)

create resized copy of ColorDrawBuf

Destructor

~this
~this()
Undocumented in source.

Members

Functions

clear
void clear()

Clear buffer contents, set dimension to 0, 0

createTransparencyBitmap
HBITMAP createTransparencyBitmap()

returns HBITMAP for alpha

destroyLeavingBitmap
HBITMAP destroyLeavingBitmap()

destroy object, but leave bitmap as is

drawTo
void drawTo(HDC dc, int x, int y)

draw to win32 device context

fill
void fill(uint color)

fill with solid color

invertAlpha
void invertAlpha()

invert alpha in buffer content

resize
void resize(int width, int height)

Change buffer size

scanLine
uint* scanLine(int y)

Returns pointer to scan line

Properties

bmp
HBITMAP bmp [@property getter]

returns handle of win32 bitmap

dc
HDC dc [@property getter]

returns handle of win32 device context

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.
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