[]
Paints the picture in the specified rectangle.
public virtual void Paint(Graphics g, Rectangle rect)
Public Overridable Sub Paint(g As Graphics, rect As Rectangle)
Type | Name | Description |
---|---|---|
Graphics | g | Graphics to display |
Rectangle | rect | Rectangle area in which to paint |
Paints the picture from the specified location.
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)
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 |
Paints the picture from the specified location.
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)
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 |