#include <aggdrawer.h>


Public Member Functions | |
| a2dAggDrawerRgba (int width=0, int height=0) | |
| Drawer having a buffer of w pixel wide and h pixels heigh. | |
| a2dAggDrawerRgba (const wxSize &size) | |
| Drawer having a buffer of w pixel wide and h pixels height given by size. | |
| a2dAggDrawerRgba (const wxBitmap &bitmap) | |
| a2dAggDrawerRgba (const a2dAggDrawerRgba &other) | |
| copy constructor | |
| wxBitmap | GetBuffer () const |
| get buffer as bitmap pointer | |
| wxImage | GetImageBuffer () const |
| return wxImage which is used as buffer here | |
| void | SetBufferSize (int w, int h) |
| set buffer size to w pixel wide and h pixels heigh | |
| wxBitmap | GetSubBitmap (wxRect sub_rect) const |
| get part of the buffer given a rect | |
| void | CopyIntoBuffer (const wxBitmap &bitm) |
| void | BlitBuffer (wxDC *dc, wxRect rect, const wxPoint &bufferpos=wxPoint(0, 0)) |
| used for blitting to a wxDC. | |
| void | ShiftBuffer (int dxy, bool yshift) |
| quick scroll over small distance | |
| void | DrawImage (const wxImage &image, double x, double y, double width, double height, wxUint8 Opacity=255) |
| Draw wxImage in world coordinates. | |
| void | DrawImage (const a2dImageRGBA &image, double x, double y, double width, double height, wxUint8 Opacity=255) |
Protected Member Functions | |
| void | DoSetDrawStyle (a2dDrawStyle drawstyle) |
| void | Render (bool fillColor) |
| virtual void | RenderGradient (bool radial) |
| virtual void | RenderBitmapFill () |
| virtual void | RenderSetClip () |
Protected Attributes | |
| a2dImageRGBA | m_buffer |
| bool | m_needbufferupdate |
This drawing context does anti aliased and alpha drawing. And uses a a2dImageRGBA as a buffer. A strong feature is the ability to draw (rotated) wxImage's
Definition at line 666 of file aggdrawer.h.
| a2dAggDrawerRgba::a2dAggDrawerRgba | ( | const wxBitmap & | bitmap | ) |
bitmap is converted to image on which you can draw. Use GetBuffer() to get a bitmap back.
Definition at line 1917 of file aggdrawer.cpp.
| void a2dAggDrawerRgba::DrawImage | ( | const wxImage & | image, | |
| double | x, | |||
| double | y, | |||
| double | width, | |||
| double | height, | |||
| wxUint8 | Opacity = 255 | |||
| ) | [virtual] |
Draw wxImage in world coordinates.
Draw the wxImage to the screen in such a manner that the image is mapped into the rectangle defined by points (x-width/2,y-width/2) and (x+width/2,y+height/2) in world coordinates, with the center of the image at (x,y).
| image | image to draw | |
| x | world x position of center of image | |
| y | world y position of center of image | |
| width | width in world coordinates to map width of image to | |
| height | height in world coordinates to map height of image to |
Implements a2dDrawer2D.
Definition at line 1999 of file aggdrawer.cpp.