Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ControlPaint.DrawImageDisabled Method

Draws the specified image in a disabled state.

[Visual Basic]
Public Shared Sub DrawImageDisabled( _
   ByVal graphics As Graphics, _
   ByVal image As Image, _
   ByVal x As Integer, _
   ByVal y As Integer, _
   ByVal background As Color _
)
[C#]
public static void DrawImageDisabled(
 Graphics graphics,
 Image image,
 int x,
 int y,
 Color background
);
[C++]
public: static void DrawImageDisabled(
 Graphics* graphics,
 Image* image,
 int x,
 int y,
 Color background
);
[JScript]
public static function DrawImageDisabled(
   graphics : Graphics,
 image : Image,
 x : int,
 y : int,
 background : Color
);

Parameters

graphics
The Graphics to draw on.
image
The 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 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

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

ControlPaint Class | ControlPaint Members | System.Windows.Forms Namespace | Image

Show:
© 2015 Microsoft