Home | Trees | Index | Help |
|
---|
Package aldrin :: Module canvas :: Class BitmapBuffer |
|
object
--+ |Object
--+ |DC
--+ |MemoryDC
--+ | BitmapBuffer
A screen buffer class.
This class implements a screen output buffer. Data is meant to be drawn in the buffer class and then blitted directly to the output device, or on-screen window.Method Summary | |
---|---|
Initialize the empty buffer object. | |
Returns the internal bitmap for direct drawing. | |
Inherited from MemoryDC | |
| |
SelectObject(self, Bitmap bitmap) | |
Inherited from DC | |
__del__(self) | |
| |
_DrawEllipseList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject | |
_DrawLineList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject | |
_DrawPointList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject | |
_DrawPolygonList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject | |
_DrawRectangleList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject | |
_DrawTextList(self, PyObject textList, PyObject pyPoints, PyObject foregroundList, ... | |
BeginDrawing(self) | |
Blit(self, int xdest, int ydest, int width, int height, DC source, int xsrc, int ysrc, int rop=COPY, bool useMask=False, int xsrcMask=-1, int ysrcMask=-1) -> bool Copy from a source DC to this DC. | |
BlitPointSize(self, Point destPt, Size sz, DC source, Point srcPt, int rop=COPY, bool useMask=False, Point srcPtMask=DefaultPosition) -> bool Copy from a source DC to this DC. | |
CalcBoundingBox(self, int x, int y) | |
CalcBoundingBoxPoint(self, Point point) | |
CanDrawBitmap(self) -> bool | |
CanGetTextExtent(self) -> bool | |
Clear(self) | |
ComputeScaleAndOrigin(self) | |
CrossHair(self, int x, int y) | |
CrossHairPoint(self, Point pt) | |
DestroyClippingRegion(self) | |
DeviceToLogicalX(self, int x) -> int | |
DeviceToLogicalXRel(self, int x) -> int | |
DeviceToLogicalY(self, int y) -> int | |
DeviceToLogicalYRel(self, int y) -> int | |
DrawArc(self, int x1, int y1, int x2, int y2, int xc, int yc) | |
DrawArcPoint(self, Point pt1, Point pt2, Point center) | |
DrawBitmap(self, Bitmap bmp, int x, int y, bool useMask=False) | |
DrawBitmapPoint(self, Bitmap bmp, Point pt, bool useMask=False) | |
DrawCheckMark(self, int x, int y, int width, int height) | |
DrawCheckMarkRect(self, Rect rect) | |
DrawCircle(self, int x, int y, int radius) | |
DrawCirclePoint(self, Point pt, int radius) | |
DrawEllipse(self, int x, int y, int width, int height) | |
Draw a list of ellipses as quickly as possible. | |
DrawEllipsePointSize(self, Point pt, Size sz) | |
DrawEllipseRect(self, Rect rect) | |
DrawEllipticArc(self, int x, int y, int w, int h, double start, double end) | |
DrawEllipticArcPointSize(self, Point pt, Size sz, double start, double end) | |
DrawIcon(self, Icon icon, int x, int y) | |
DrawIconPoint(self, Icon icon, Point pt) | |
DrawImageLabel(self, String text, Bitmap image, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP, int indexAccel=-1) -> Rect Draw *text* and an image (which may be ``wx.NullBitmap`` to skip drawing it) within the specified rectangle, abiding by the alignment flags. | |
DrawLabel(self, String text, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP, int indexAccel=-1) Draw *text* within the specified rectangle, abiding by the alignment flags. | |
DrawLine(self, int x1, int y1, int x2, int y2) | |
Draw a list of lines as quickly as possible. | |
DrawLinePoint(self, Point pt1, Point pt2) | |
DrawLines(self, List points, int xoffset=0, int yoffset=0) | |
DrawPoint(self, int x, int y) | |
Draw a list of points as quickly as possible. | |
DrawPointPoint(self, Point pt) | |
DrawPolygon(self, List points, int xoffset=0, int yoffset=0, int fillStyle=ODDEVEN_RULE) Draws a filled polygon using a sequence of `wx.Point` objects, adding the optional offset coordinate. | |
Draw a list of polygons, each of which is a list of points. | |
DrawRectangle(self, int x, int y, int width, int height) | |
Draw a list of rectangles as quickly as possible. | |
DrawRectanglePointSize(self, Point pt, Size sz) | |
DrawRectangleRect(self, Rect rect) | |
DrawRotatedText(self, String text, int x, int y, double angle) | |
DrawRotatedTextPoint(self, String text, Point pt, double angle) | |
DrawRoundedRectangle(self, int x, int y, int width, int height, double radius) | |
DrawRoundedRectanglePointSize(self, Point pt, Size sz, double radius) | |
DrawRoundedRectangleRect(self, Rect r, double radius) | |
DrawSpline(self, List points) | |
DrawText(self, String text, int x, int y) | |
Draw a list of strings using a list of coordinants for positioning each string. | |
DrawTextPoint(self, String text, Point pt) | |
EndDoc(self) | |
EndDrawing(self) | |
EndPage(self) | |
FloodFill(self, int x, int y, Colour col, int style=FLOOD_SURFACE) -> bool | |
FloodFillPoint(self, Point pt, Colour col, int style=FLOOD_SURFACE) -> bool | |
GetBackground(self) -> Brush | |
GetBackgroundMode(self) -> int | |
GetBoundingBox() -> (x1,y1, x2,y2) | |
GetBrush(self) -> Brush | |
GetCharHeight(self) -> int | |
GetCharWidth(self) -> int | |
GetClippingBox() -> (x, y, width, height) | |
GetClippingRect(self) -> Rect | |
GetDepth(self) -> int | |
GetDeviceOrigin(self) -> Point | |
GetDeviceOriginTuple() -> (x,y) | |
GetFont(self) -> Font | |
GetFullTextExtent(wxString string, Font font=None) -> (width, height, descent, externalLeading) Get the width, height, decent and leading of the text using the current or specified font. | |
GetLogicalFunction(self) -> int | |
GetLogicalOrigin(self) -> Point | |
GetLogicalOriginTuple() -> (x,y) | |
GetLogicalScale() -> (xScale, yScale) | |
GetMapMode(self) -> int | |
GetMultiLineTextExtent(wxString string, Font font=None) -> (width, height, descent, externalLeading) Get the width, height, decent and leading of the text using the current or specified font. | |
<function GetOptimization at 0xb6ad6d4c> is deprecated | |
GetPartialTextExtents(self, text) -> [widths] | |
GetPen(self) -> Pen | |
GetPixel(self, int x, int y) -> Colour | |
GetPixelPoint(self, Point pt) -> Colour | |
GetPPI(self) -> Size | |
GetSize(self) -> Size | |
GetSizeMM(self) -> Size | |
GetSizeMMTuple() -> (width, height) | |
GetSizeTuple() -> (width, height) | |
GetTextBackground(self) -> Colour | |
GetTextExtent(wxString string) -> (width, height) | |
GetTextForeground(self) -> Colour | |
GetUserScale(self) -> (xScale, yScale) | |
LogicalToDeviceX(self, int x) -> int | |
LogicalToDeviceXRel(self, int x) -> int | |
LogicalToDeviceY(self, int y) -> int | |
LogicalToDeviceYRel(self, int y) -> int | |
MaxX(self) -> int | |
MaxY(self) -> int | |
MinX(self) -> int | |
MinY(self) -> int | |
Ok(self) -> bool | |
ResetBoundingBox(self) | |
SetAxisOrientation(self, bool xLeftRight, bool yBottomUp) | |
SetBackground(self, Brush brush) | |
SetBackgroundMode(self, int mode) | |
SetBrush(self, Brush brush) | |
SetClippingRect(self, Rect rect) | |
SetClippingRegion(self, int x, int y, int width, int height) | |
SetClippingRegionAsRegion(self, Region region) | |
SetClippingRegionPointSize(self, Point pt, Size sz) | |
SetDeviceOrigin(self, int x, int y) | |
SetDeviceOriginPoint(self, Point point) | |
SetFont(self, Font font) | |
SetLogicalFunction(self, int function) Sets the current logical function for the device context. | |
SetLogicalOrigin(self, int x, int y) | |
SetLogicalOriginPoint(self, Point point) | |
SetLogicalScale(self, double x, double y) | |
SetMapMode(self, int mode) The *mapping mode* of the device context defines the unit of measurement used to convert logical units to device units. | |
<function SetOptimization at 0xb6ad6d14> is deprecated | |
SetPalette(self, Palette palette) | |
SetPen(self, Pen pen) | |
SetTextBackground(self, Colour colour) | |
SetTextForeground(self, Colour colour) | |
SetUserScale(self, double x, double y) | |
StartDoc(self, String message) -> bool | |
StartPage(self) | |
Inherited from Object | |
Destroy(self) | |
GetClassName(self) -> String | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Method Details |
---|
__init__(self,
width,
height,
colour=None)
Initialize the empty buffer object.
|
GetBitmap(self)Returns the internal bitmap for direct drawing. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sun Feb 4 18:01:15 2007 | http://epydoc.sf.net |