DrawCircle
From SwinGame
DrawCircle draws a circle centered on a given x, y location. A boolean value can be passed to draw a filled circle instead of an outline of a circle. The routine will draw a circle on the screen if you do not specify the destination bitmap to draw on. The colour of a circle can be set by passing a colour value.
Where is it: SGSDK_GRAPHICS
Contents |
Languages
Pascal
Added in version 1.1:
procedure DrawCircle(dest: Bitmap; theColour: Colour; filled: Boolean; point: Point2D; radius: Integer);
procedure DrawCircle(dest: Bitmap; theColour: Colour; point: Point2D; radius: Integer);
procedure DrawCircle(theColour: Colour; filled: Boolean; position: Point2D; radius: Integer);
procedure DrawCircle(theColour: Colour; position: Point2D; radius: Integer);
In version 1.0:
procedure DrawCircle(dest: Bitmap; theColour: Colour; filled: Boolean; xc, yc, radius: Integer);
procedure DrawCircle(dest: Bitmap; theColour: Colour; c, yc, radius: Integer);
procedure DrawCircle(theColour: Colour; filled: Boolean; xc, yc: Single; radius: Integer);
procedure DrawCircle(theColour: Colour; xc, yc: Single; radius: Integer);
C#
Added in version 1.1:
public void Graphics.DrawCircle(Color theColour, Point2D position, int radius);
public void Graphics.DrawCircle(Color theColor, bool filled, Point2D position, int radius);
public void Graphics.DrawCircle(Bitmap dest, Color theColour, Point2D position, int radius);
public void Graphics.DrawCircle(Bitmap dest, Color theColour, bool filled, Point2D position, int radius);
In version 1.0:
public void Graphics.DrawCircle(Color theColour, float xc, float yc, int radius);
public void Graphics.DrawCircle(Color theColor, bool filled, float xc, float yc, int radius);
public void Graphics.DrawCircle(Bitmap dest, Color theColour, int xc, int yc, int radius);
public void Graphics.DrawCircle(Bitmap dest, Color theColour, bool filled, int xc, int yc, int radius);
Visual Basic .NET
Added in version 1.1:
Public Sub Graphics.DrawCircle(ByVal dest As Bitmap, ByVal theColour As Color, ByVal filled As Boolean, ByVal position As Point2D, ByVal radius As Integer)
Public Sub Graphics.DrawCircle(ByVal dest As Bitmap, ByVal theColour As Color, ByVal position As Point2D, ByVal radius As Integer)
Public Sub Graphics.DrawCircle(ByVal theColor As Color, ByVal filled As Boolean, ByVal position As Point2D, ByVal radius As Integer)
Public Sub Graphics.DrawCircle(ByVal theColour As Color, ByVal position As Point2D, ByVal radius As Integer)
In version 1.0
Public Sub Graphics.DrawCircle(ByVal dest As Bitmap, ByVal theColour As Color, ByVal filled As Boolean, ByVal xc As Integer, ByVal yc As Integer, ByVal radius As Integer)
Public Sub Graphics.DrawCircle(ByVal dest As Bitmap, ByVal theColour As Color, ByVal xc As Integer, ByVal yc As Integer, ByVal radius As Integer)
Public Sub Graphics.DrawCircle(ByVal theColor As Color, ByVal filled As Boolean, ByVal xc As Single, ByVal yc As Single, ByVal radius As Integer)
Public Sub Graphics.DrawCircle(ByVal theColour As Color, ByVal xc As Single, ByVal yc As Single, ByVal radius As Integer)
Visual Basic 6
Added in version 1.1:
Public Sub Graphics.DrawCircle_Fill_Point(ByVal theColor As Long, ByVal filled As Boolean, ByVal position As Point2D, ByVal radius As Long)
Public Sub Graphics.DrawCircle_OnBitmap_Fill_Point(ByVal dest As Bitmap, ByVal theColour As Long, ByVal filled As Boolean, ByVal position As Point2D, ByVal radius As Long)
Public Sub Graphics.DrawCircle_OnBitmap_Point(ByVal dest As Bitmap, ByVal theColour As Long, ByVal position As Point2D, ByVal radius As Long)
Public Sub Graphics.DrawCircle_Point(ByVal theColour As Long, ByVal position As Point2D, ByVal radius As Long)
In version 1.0:
Public Sub Graphics.DrawCircle(ByVal theColour As Long, ByVal filled As Boolean, ByVal xc As Single, ByVal yc As Single, ByVal radius As Long)
Public Sub Graphics.DrawCircle_NoFill(ByVal theColour As Long, ByVal xc As Single, ByVal yc As Single, ByVal radius As Long)
Public Sub Graphics.DrawCircle_OnBitmap(ByVal dest As Bitmap, ByVal theColour As Long, ByVal filled As Boolean, ByVal xc As Long, ByVal yc As Long, ByVal radius As Long)
Public Sub Graphics.DrawCircle_OnBitmap_NoFill(ByVal dest As Bitmap, ByVal theColour As Long, ByVal xc As Long, ByVal yc As Long, ByVal radius As Long)

