Logo Search packages:      
Sourcecode: pythoncard version File versions  Download package

def PythonCard-0.8.1::components::bitmapcanvas::BitmapCanvas::drawArc (   self,
  x1y1,
  x2y2,
  xcyc 
)

Draws an arc of a circle, centered on (xc, yc), with starting
point (x1, y1) and ending at (x2, y2). The current pen is used
for the outline and the current brush for filling the shape.

The arc is drawn in an anticlockwise direction from the start
point to the end point.

Definition at line 226 of file bitmapcanvas.py.

00226                                        :
        """
        Draws an arc of a circle, centered on (xc, yc), with starting
        point (x1, y1) and ending at (x2, y2). The current pen is used
        for the outline and the current brush for filling the shape.

        The arc is drawn in an anticlockwise direction from the start
        point to the end point.
        """

        self._bufImage.DrawArcPoint(x1y1, x2y2, xcyc)
        if self.autoRefresh:
            dc = wx.ClientDC(self)
            dc.BlitPointSize((0, 0), (self._size[0], self._size[1]), self._bufImage, (0, 0))

    # doesn't exist in wxMemoryDC
    #def DrawCheckMark(self, xy, widthHeight):
    #    self._bufImage.DrawCheckMark(xy, widthHeight)
    #    if self.autoRefresh: self.refresh()

    def drawBitmap(self, aBitmap, xy=(0, 0), transparency=1):


Generated by  Doxygen 1.6.0   Back to index