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.IDisposableInheritance: object → DrawingBitmap
Constructors
Section titled “Constructors”DrawingBitmap(int, int)
Section titled “DrawingBitmap(int, int)”Initializes a new instance of the DrawingBitmap class with the specified size.
public DrawingBitmap(int width, int height)Parameters
Section titled “Parameters”widthint
The width, in pixels, of the new DrawingBitmap.heightint
The height, in pixels, of the new DrawingBitmap.
Properties
Section titled “Properties”Height
Section titled “Height”Gets the height, in pixels, of this DrawingBitmap.
public int Height { get; }Property Value
Section titled “Property Value”Gets the width, in pixels, of this DrawingBitmap.
public int Width { get; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Clear(Color)
Section titled “Clear(Color)”Clears the bitmap with the specified color.
public void Clear(Color color)Parameters
Section titled “Parameters”colorColor
Clear()
Section titled “Clear()”Clears the bitmap.
public void Clear()Dispose()
Section titled “Dispose()”public virtual void Dispose()DrawLine(Point, Point, Color)
Section titled “DrawLine(Point, Point, Color)”Draws a line connecting two Point structures.
public void DrawLine(Point a, Point b, Color color)Parameters
Section titled “Parameters”aPoint
Point structure that represents the first point to connect.bPoint
Point structure that represents the second point to connect.colorColor
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)Parameters
Section titled “Parameters”x1double
The x-coordinate of the first point.y1double
The y-coordinate of the first point.x2double
The x-coordinate of the second point.y2double
The y-coordinate of the second point.colorColor
Color that determines the color of the line.
DrawLine(int, int, int, int, Color)
Section titled “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)Parameters
Section titled “Parameters”x1int
The x-coordinate of the first point.y1int
The y-coordinate of the first point.x2int
The x-coordinate of the second point.y2int
The y-coordinate of the second point.colorColor
Color that determines the color of the line.
DrawRectangle(Color, Color, Rect)
Section titled “DrawRectangle(Color, Color, Rect)”Draws a rectangle specified by a Rect structure.
public void DrawRectangle(Color brushColor, Color penColor, Rect rect)Parameters
Section titled “Parameters”brushColorColor
Color that determines the color of the fill.penColorColor
Color that determines the color of the edge.rectRect
A Rect structure that represents the rectangle to draw.
ToContext(DrawingContext, int, int)
Section titled “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)Parameters
Section titled “Parameters”contextDrawingContext
DrawingContext that determines the context where bitmap is drawn.xint
The x-coordinate of the point.yint
The x-coordinate of the point.