[]
        
(Showing Draft Content)

FarPoint.Win.Picture.Paint

Paint Method

Paint(Graphics, Rectangle)

Paints the picture in the specified rectangle.

Declaration
public virtual void Paint(Graphics g, Rectangle rect)
Public Overridable Sub Paint(g As Graphics, rect As Rectangle)
Parameters
Type Name Description
Graphics g

Graphics to display

Rectangle rect

Rectangle area in which to paint

Paint(Graphics, int, int, int, int)

Paints the picture from the specified location.

Declaration
public virtual void Paint(Graphics g, int x, int y, int width, int height)
Public Overridable Sub Paint(g As Graphics, x As Integer, y As Integer, width As Integer, height As Integer)
Parameters
Type Name Description
Graphics g

Graphics to display

int x

x-coordinate for the top-left corner

int y

y-coordinate for the top-left corner

int width

Width of the picture in pixels

int height

Height of the picture in pixels

Paint(Graphics, int, int, int, int, bool)

Paints the picture from the specified location.

Declaration
public virtual void Paint(Graphics g, int x, int y, int width, int height, bool isGrayScale)
Public Overridable Sub Paint(g As Graphics, x As Integer, y As Integer, width As Integer, height As Integer, isGrayScale As Boolean)
Parameters
Type Name Description
Graphics g

Graphics to display

int x

x-coordinate for the top-left corner

int y

y-coordinate for the top-left corner

int width

Width of the picture in pixels

int height

Height of the picture in pixels

bool isGrayScale

Whether painting in grayscale mode