Table of Contents

Class Graphics

Namespace
HP.LFT.Common.Linux.Drawing
Assembly
HP.LFT.Common.Standard.dll

Graphics class (non-static and disposable)

public class Graphics : IDisposable
Inheritance
Graphics
Implements
Inherited Members

Constructors

Graphics(SKCanvas)

public Graphics(SKCanvas canvas)

Parameters

canvas SKCanvas

Methods

Clear(Color)

public void Clear(Color color)

Parameters

color Color

Dispose()

public void Dispose()

Dispose(bool)

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

DrawImage(Image, Rectangle)

public void DrawImage(Image image, Rectangle destRect)

Parameters

image Image
destRect Rectangle

DrawImage(Image, Rectangle, Rectangle)

public void DrawImage(Image image, Rectangle srcRect, Rectangle destRect)

Parameters

image Image
srcRect Rectangle
destRect Rectangle

DrawImage(Image, Rectangle, Rectangle, GraphicsUnit)

public void DrawImage(Image image, Rectangle destRect, Rectangle srcRect, GraphicsUnit graphicsUnit)

Parameters

image Image
destRect Rectangle
srcRect Rectangle
graphicsUnit GraphicsUnit

DrawImage(Image, float, float)

public void DrawImage(Image image, float x, float y)

Parameters

image Image
x float
y float

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

public void DrawRectangle(Pen pen, int x, int y, int width, int height)

Parameters

pen Pen
x int
y int
width int
height int

FillRectangle(Brush, Rectangle)

public void FillRectangle(Brush brush, Rectangle rect)

Parameters

brush Brush
rect Rectangle

FromImage(Image)

public static Graphics FromImage(Image image)

Parameters

image Image

Returns

Graphics

Restore()

public void Restore()

Save()

public int Save()

Returns

int