API Documentation

DrawingBitmap

Namespace: TagBites.WinSchedulers.Drawing
Assembly: TagBites.WinSchedulers.dll

Provides fast drawing on the bitmap.

public class DrawingBitmap : System.IDisposable

Constructors

DrawingBitmap(int, int)

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

public void DrawingBitmap(int width, int height)

Result Type: void

Parameters

TypeName
intwidthThe width, in pixels, of the new .
intheightThe height, in pixels, of the new .

Properties

Height

Gets the height, in pixels, of this TagBites.WinSchedulers.Drawing.DrawingBitmap.

public int Height { get; }

Result Type: int

Width

Gets the width, in pixels, of this TagBites.WinSchedulers.Drawing.DrawingBitmap.

public int Width { get; }

Result Type: int

Methods

Clear(Color)

Clears the bitmap with the specified color.

public void Clear(Color color)

Result Type: void

Parameters

TypeName
Colorcolor

Clear()

Clears the bitmap.

public void Clear()

Result Type: void

Dispose()

public void Dispose()

Result Type: void

DrawLine(Point, Point, Color)

Draws a line connecting two System.Windows.Point structures.

public void DrawLine(Point a, Point b, Color color)

Result Type: void

Parameters

TypeName
Pointastructure that represents the first point to connect.
Pointbstructure that represents the second point to connect.
Colorcolorthat determines the color of the line.

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)

Result Type: void

Parameters

TypeName
doublex1The x-coordinate of the first point.
doubley1The y-coordinate of the first point.
doublex2The x-coordinate of the second point.
doubley2The y-coordinate of the second point.
Colorcolorthat determines the color of the line.

DrawLine(int, int, int, int, Color)

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)

Result Type: void

Parameters

TypeName
intx1The x-coordinate of the first point.
inty1The y-coordinate of the first point.
intx2The x-coordinate of the second point.
inty2The y-coordinate of the second point.
Colorcolorthat determines the color of the line.

DrawRectangle(Color, Color, Rect)

Draws a rectangle specified by a System.Windows.Rect structure.

public void DrawRectangle(Color brushColor, Color penColor, Rect rect)

Result Type: void

Parameters

TypeName
ColorbrushColorthat determines the color of the fill.
ColorpenColorthat determines the color of the edge.
RectrectA structure that represents the rectangle to draw.

ToContext(DrawingContext, int, int)

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

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

Result Type: void

Parameters

TypeName
DrawingContextcontextthat determines the context where bitmap is drawn.
intxThe x-coordinate of the point.
intyThe x-coordinate of the point.