System.Windows.Forms.ControlPaint.DrawImageDisabled Method

Draws the specified image in a disabled state.

Syntax

public static void DrawImageDisabled (System.Drawing.Graphics graphics, System.Drawing.Image image, int x, int y, System.Drawing.Color background)

Parameters

graphics
The System.Drawing.Graphics to draw on.
image
The System.Drawing.Image to draw.
x
The x-coordinate of the top left of the border image.
y
The y-coordinate of the top left of the border image.
background
The System.Drawing.Color of the background behind the image.

Remarks

The background parameter is used to calculate the fill color of the disabled image so that it is always visible against the background.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0