Table of Contents

Class Graphics

Graphics class (non-static and disposable)

Inheritance
Graphics
Implements
IDisposable
Namespace: HP.LFT.Common.Linux.Drawing
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
public void Dispose()

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
Type Name Description
Image image
Rectangle destRect

DrawImage(Image, Rectangle, Rectangle)

Declaration
public void DrawImage(Image image, Rectangle srcRect, Rectangle destRect)
Parameters
Type Name Description
Image image
Rectangle srcRect
Rectangle destRect

DrawImage(Image, Rectangle, Rectangle, GraphicsUnit)

Declaration
public void DrawImage(Image image, Rectangle destRect, Rectangle srcRect, GraphicsUnit graphicsUnit)
Parameters
Type Name Description
Image image
Rectangle destRect
Rectangle srcRect
GraphicsUnit graphicsUnit

DrawImage(Image, float, float)

Declaration
public void DrawImage(Image image, float x, float y)
Parameters
Type Name Description
Image image
float x
float y

DrawRectangle(Pen, int, int, int, int)

Declaration
public void DrawRectangle(Pen pen, int x, int y, int width, int height)
Parameters
Type Name Description
Pen pen
int x
int y
int width
int height

FillRectangle(Brush, Rectangle)

Declaration
public void FillRectangle(Brush brush, Rectangle rect)
Parameters
Type Name Description
Brush brush
Rectangle rect

FromImage(Image)

Declaration
public static Graphics FromImage(Image image)
Parameters
Type Name Description
Image image
Returns
Type Description
Graphics

Restore()

Declaration
public void Restore()

Save()

Declaration
public int Save()
Returns
Type Description
int

Implements

IDisposable