Class Graphics
Graphics class (non-static and disposable)
Assembly: HP.LFT.Common.Standard.dll
Syntax
public class Graphics : IDisposable
Constructors
Graphics(SKCanvas)
Declaration
public Graphics(SKCanvas canvas)
Parameters
| Type |
Name |
Description |
| SKCanvas |
canvas |
|
Methods
Clear(Color)
Declaration
public void Clear(Color color)
Parameters
| Type |
Name |
Description |
| Color |
color |
|
Dispose()
Declaration
Dispose(bool)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
| Type |
Name |
Description |
| bool |
disposing |
|
DrawImage(Image, Rectangle)
Declaration
public void DrawImage(Image image, Rectangle destRect)
Parameters
DrawImage(Image, Rectangle, Rectangle)
Declaration
public void DrawImage(Image image, Rectangle srcRect, Rectangle destRect)
Parameters
DrawImage(Image, Rectangle, Rectangle, GraphicsUnit)
Declaration
public void DrawImage(Image image, Rectangle destRect, Rectangle srcRect, GraphicsUnit graphicsUnit)
Parameters
DrawImage(Image, float, float)
Declaration
public void DrawImage(Image image, float x, float y)
Parameters
DrawRectangle(Pen, int, int, int, int)
Declaration
public void DrawRectangle(Pen pen, int x, int y, int width, int height)
Parameters
FillRectangle(Brush, Rectangle)
Declaration
public void FillRectangle(Brush brush, Rectangle rect)
Parameters
FromImage(Image)
Declaration
public static Graphics FromImage(Image image)
Parameters
| Type |
Name |
Description |
| Image |
image |
|
Returns
Restore()
Declaration
Save()
Declaration
Returns
Implements