ControlPaint.DrawImageDisabled(Graphics, Image, Int32, Int32, Color) Method

Definition

Draws the specified image in a disabled state.

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

Parameters

graphics
Graphics

The Graphics to draw on.

image
Image

The Image to draw.

x
Int32

The x-coordinate of the top left of the border image.

y
Int32

The y-coordinate of the top left of the border image.

background
Color

The 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.

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

See also