- public void set_window (int x1, int y1, int x2, int y2)
Specifies the user window.
- public void get_window (out int x1, out int y1, out int x2, out int y2)
Gets the user window of the current context.
- public void convert_user_to_screen (ref int x, ref int y)
Converts x
and y
from coordinates in the
user window to coordinates in the current context.
- public void convert_screen_to_user (ref int x, ref int y)
Converts x
and y
from coordinates in the
current context to coordinates in the user window.
- public void draw_pixel (int x, int y, Color c)
Draw a single pixel on the current context at the specified user
coordinates.
- public void draw_line (int x1, int y1, int x2, int y2, Color c)
Draws a line on the current context from the starting coordinates to
the ending coordinates using the specified color.
- public void draw_hline (int x1, int x2, int y, Color c)
Draws a horizontal line on the current context from the starting
coordinates to the ending coordinates using the specified color.
- public void draw_vline (int x, int y1, int y2, Color c)
Draws a vertical line on the current context from the starting
coordinates to the ending coordinates using the specified color.
- public void draw_box (int x1, int y1, int x2, int y2, Color c)
Draws a rectangle on the current context using the specified
coordinates and color.
- public void draw_filled_box (int x1, int y1, int x2, int y2, Color c)
Draws a filled rectangle on the current context using the specified
coordinates and color.
- public void draw_framed_box (int x1, int y1, int x2, int y2, int width, FramedBoxColors c)
Draws a framed rectangle on the current context using the specified
coordinates and colors.
- public void draw_circle (int xc, int yc, int r, Color c)
Draws a circle on the current context centered at the specified
coordinates with the specified radius and color.
- public void draw_ellipse (int xc, int yc, int rx, int ry, Color c)
Draws an ellipse on the current context using the specified color.
- public void draw_circle_arc (int xc, int yc, int r, int start, int end, ArcStyle style, Color c)
Draws an arc on the current context centered at the specified
coordinates from the starting angle to the ending angle with the specified radius, arc style and color.
- public void draw_ellipse_arc (int xc, int yc, int rx, int ry, int start, int end, ArcStyle style, Color c)
Draws an arc on the current context centered at the specified
coordinates from the starting angle to the ending angle with the specified radii, arc style and color.
- public void draw_filled_circle (int xc, int yc, int r, Color c)
Draws a filled circle on the current context centered at the specified
coordinates with the specified radius and color.
- public void draw_filled_ellipse (int xc, int yc, int rx, int ry, Color c)
Draws a filled ellipse on the current context using the specified
color.
- public void draw_filled_circle_arc (int xc, int yc, int r, int start, int end, ArcStyle style, Color c)
Draws a filled arc on the current context centered at the specified
coordinates from the starting angle to the ending angle with the specified radius, arc style and color.
- public void draw_filled_ellipse_arc (int xc, int yc, int rx, int ry, int start, int end, ArcStyle style, Color c)
Draws a filled arc on the current context centered at the specified
coordinates from the starting angle to the ending angle with the specified radii, arc style and color.
- public void draw_polyline (Point[] points, Color c)
Draw a multi-segment line on the current context that connects each
point in the points
array using the specified color.
- public void draw_polygon (Point[] points, Color c)
Draw a closed polygon on the current context that connects each point
in the points
array using the specified color.
- public void draw_filled_convex_polygon (Point[] points, Color c)
Draw a filled polygon on the current context that connects each point
in the points
array using the specified color.
- public void draw_filled_polygon (Point[] points, Color c)
Draw a filled polygon on the current context that connects each point
in the points
array using the specified color.
- public void flood_fill (int x, int y, Color border, Color c)
Flood-fills the area of the current context bounded by the color
border
using x
, y
as the starting point.
- public void bit_blt (int x, int y, Context src, int x1, int y1, int x2, int y2, Color oper = ( Color) WRITE)
- public void bit_blt_1bpp (int x, int y, Context src, int x1, int y1, int x2, int y2, Color fg, Color bg)
- public Color get_pixel_at (int x, int y)
Gets the color value of the pixel in the current context at the
specified coordinates.
- public void draw_line_with_options (int x1, int y1, int x2, int y2, LineOptions o)
Draws a line on the current context from the starting coordinates to
the ending coordinates using the specified options.
- public void draw_box_with_options (int x1, int y1, int x2, int y2, LineOptions o)
Draws a rectangle on the current context using the specified
coordinates and options.
- public void draw_circle_with_options (int xc, int yc, int r, LineOptions o)
Draws a circle on the current context centered at the specified
coordinates with the specified radius and options.
- public void draw_ellipse_with_options (int xc, int yc, int rx, int ry, LineOptions o)
Draws an ellipse on the current context using the specified options.
- public void draw_circle_arc_with_options (int xc, int yc, int r, int start, int end, ArcStyle style, LineOptions o)
Draws an arc on the current context centered at the specified
coordinates from the starting angle to the ending angle with the specified radius, arc style and options.
- public void draw_ellipse_arc_with_options (int xc, int yc, int rx, int ry, int start, int end, ArcStyle style, LineOptions o)
Draws an arc on the current context centered at the specified
coordinates from the starting angle to the ending angle with the specified radii, arc style and options.
- public void draw_polyline_with_options (Point[] points, LineOptions o)
Draw a multi-segment line on the current context that connects each
point in the points
array using the specified options.
- public void draw_polygon_with_options (Point[] points, LineOptions o)
Draw a closed polygon on the current context that connects each point
in the points
array using the specified options.
- public void draw_line_with_pixmap (int x1, int y1, int x2, int y2, LineOptions o, Pixmap p)
Draws a line on the current context from the starting coordinates to
the ending coordinates using the specified line options and pixmap.
- public void draw_box_with_pixmap (int x1, int y1, int x2, int y2, LineOptions o, Pixmap p)
Draws a rectangle on the current context using the specified
coordinates and line options and pixmap.
- public void draw_circle_with_pixmap (int xc, int yc, int r, LineOptions o, Pixmap p)
Draws a circle on the current context centered at the specified
coordinates with the specified radius and line options and pixmap.
- public void draw_ellipse_with_pixmap (int xc, int yc, int rx, int ry, LineOptions o, Pixmap p)
Draws an ellipse on the current context using the specified line
options and pattern.
- public void draw_circle_arc_with_pixmap (int xc, int yc, int r, int start, int end, ArcStyle style, LineOptions o, Pixmap p)
Draws an arc on the current context centered at the specified
coordinates from the starting angle to the ending angle with the specified radius, arc style and line options and pixmap.
- public void draw_ellipse_arc_with_pixmap (int xc, int yc, int rx, int ry, int start, int end, ArcStyle style, LineOptions o, Pixmap p)
Draws an arc on the current context centered at the specified
coordinates from the starting angle to the ending angle with the specified radii, arc style and line options and pixmap.
- public void draw_polyline_with_pixmap (Point[] points, LineOptions o, Pixmap p)
Draw a multi-segment line on the current context that connects each
point in the points
array using the specified line options and pattern.
- public void draw_polygon_with_pixmap (Point[] points, LineOptions o, Pixmap p)
Draw a closed polygon on the current context that connects each point
in the points
array using the specified line options and pixmap.
- public void draw_filled_pixel_with_pixmap (int x, int y, Pixmap p)
Draw a single pixel on the current context at the specified
coordinates.
- public void draw_filled_line_with_pixmap (int x1, int y1, int x2, int y2, Pixmap p)
Draws a line on the current context from the starting coordinates to
the ending coordinates using the specified pixmap.
- public void draw_filled_box_with_pixmap (int x1, int y1, int x2, int y2, Pixmap p)
Draws a filled rectangle on the current context using the specified
coordinates and pixmap.
- public void draw_filled_circle_with_pixmap (int xc, int yc, int r, Pixmap p)
Draws a filled circle on the current context centered at the specified
coordinates with the specified radius and pixmap.
- public void draw_filled_ellipse_with_pixmap (int xc, int yc, int rx, int ry, Pixmap p)
Draws a filled ellipse on the current context using the specified
pixmap.
- public void draw_filled_circle_arc_with_pixmap (int xc, int yc, int r, int start, int end, int style, Pixmap p)
Draws a filled arc on the current context centered at the specified
coordinates from the starting angle to the ending angle with the specified radius, arc style and pixmap.
- public void draw_filled_ellipse_arc_with_pixmap (int xc, int yc, int rx, int ry, int start, int end, int style, Pixmap p)
Draws a filled arc on the current context centered at the specified
coordinates from the starting angle to the ending angle with the specified radii, arc style and pixmap.
- public void draw_filled_convex_polygon_with_pixmap (Point[] points, Pixmap p)
Draw a filled polygon on the current context that connects each point
in the points
array using the specified pixmap.
- public void draw_filled_polygon_with_pixmap (Point[] points, Pixmap p)
Draw a filled polygon on the current context that connects each point
in the points
array using the specified pixmap.
- public void flood_fill_with_pixmap (int x, int y, Color border, Pixmap p)
Flood-fills the area of the current context bounded by the color
border
using x
, y
as the starting point.
- public void draw_text (string text, int x, int y, Color fg, Color bg)