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
Type | Name | |
---|---|---|
int | width | The width, in pixels, of the new . |
int | height | The 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
Type | Name | |
---|---|---|
Color | color |
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
Type | Name | |
---|---|---|
Point | a | structure that represents the first point to connect. |
Point | b | structure that represents the second point to connect. |
Color | color | that 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
Type | Name | |
---|---|---|
double | x1 | The x-coordinate of the first point. |
double | y1 | The y-coordinate of the first point. |
double | x2 | The x-coordinate of the second point. |
double | y2 | The y-coordinate of the second point. |
Color | color | that 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
Type | Name | |
---|---|---|
int | x1 | The x-coordinate of the first point. |
int | y1 | The y-coordinate of the first point. |
int | x2 | The x-coordinate of the second point. |
int | y2 | The y-coordinate of the second point. |
Color | color | that 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
Type | Name | |
---|---|---|
Color | brushColor | that determines the color of the fill. |
Color | penColor | that determines the color of the edge. |
Rect | rect | A 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
Type | Name | |
---|---|---|
DrawingContext | context | that determines the context where bitmap is drawn. |
int | x | The x-coordinate of the point. |
int | y | The x-coordinate of the point. |