Class Graphics
Graphics class (non-static and disposable)
public class Graphics : IDisposable
- Inheritance
-
Graphics
- Implements
- Inherited Members
Constructors
Graphics(SKCanvas)
public Graphics(SKCanvas canvas)
Parameters
canvasSKCanvas
Methods
Clear(Color)
public void Clear(Color color)
Parameters
colorColor
Dispose()
public void Dispose()
Dispose(bool)
protected virtual void Dispose(bool disposing)
Parameters
disposingbool
DrawImage(Image, Rectangle)
public void DrawImage(Image image, Rectangle destRect)
Parameters
DrawImage(Image, Rectangle, Rectangle)
public void DrawImage(Image image, Rectangle srcRect, Rectangle destRect)
Parameters
DrawImage(Image, Rectangle, Rectangle, GraphicsUnit)
public void DrawImage(Image image, Rectangle destRect, Rectangle srcRect, GraphicsUnit graphicsUnit)
Parameters
imageImagedestRectRectanglesrcRectRectanglegraphicsUnitGraphicsUnit
DrawImage(Image, float, float)
public void DrawImage(Image image, float x, float y)
Parameters
DrawRectangle(Pen, int, int, int, int)
public void DrawRectangle(Pen pen, int x, int y, int width, int height)
Parameters
FillRectangle(Brush, Rectangle)
public void FillRectangle(Brush brush, Rectangle rect)
Parameters
FromImage(Image)
public static Graphics FromImage(Image image)
Parameters
imageImage
Returns
Restore()
public void Restore()
Save()
public int Save()