Skip to content
Auto
Products

DrawingBitmap

Namespace: TagBites.WinSchedulers.Drawing
Assembly: TagBites.WinSchedulers.dll
Product: TagBites.WinSchedulers v. 1.3.8

Provides fast drawing on the bitmap.

public class DrawingBitmap : System.IDisposable

Inheritance: object → DrawingBitmap

Initializes a new instance of the DrawingBitmap class with the specified size.

public DrawingBitmap(int width, int height)

Gets the height, in pixels, of this DrawingBitmap.

public int Height { get; }

int

Gets the width, in pixels, of this DrawingBitmap.

public int Width { get; }

int

Clears the bitmap with the specified color.

public void Clear(Color color)

Clears the bitmap.

public void Clear()
public virtual void Dispose()

Draws a line connecting two Point structures.

public void DrawLine(Point a, Point b, Color color)
  • a Point
    Point structure that represents the first point to connect.
  • b Point
    Point structure that represents the second point to connect.
  • color Color
    Color that determines the color of the line.

DrawLine(double, double, double, double, Color)

Section titled “DrawLine(double, double, double, double, Color)”

Draws a line connecting the two points specified by the coordinate pairs.

public void DrawLine(double x1, double y1, double x2, double y2, Color color)
  • x1 double
    The x-coordinate of the first point.
  • y1 double
    The y-coordinate of the first point.
  • x2 double
    The x-coordinate of the second point.
  • y2 double
    The y-coordinate of the second point.
  • color Color
    Color that determines the color of the line.

Draws a line connecting the two points specified by the coordinate pairs.

public void DrawLine(int x1, int y1, int x2, int y2, Color color)
  • x1 int
    The x-coordinate of the first point.
  • y1 int
    The y-coordinate of the first point.
  • x2 int
    The x-coordinate of the second point.
  • y2 int
    The y-coordinate of the second point.
  • color Color
    Color that determines the color of the line.

Draws a rectangle specified by a Rect structure.

public void DrawRectangle(Color brushColor, Color penColor, Rect rect)
  • brushColor Color
    Color that determines the color of the fill.
  • penColor Color
    Color that determines the color of the edge.
  • rect Rect
    A Rect structure that represents the rectangle to draw.

Draws an image into the region defined by the specified coordinates and bitmap dimensions.

public void ToContext(DrawingContext context, int x, int y)