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 _
public static void DrawImageDisabled(
 Graphics graphics,
 Image image,
 int x,
 int y,
 Color background
public: static void DrawImageDisabled(
 Graphics* graphics,
 Image* image,
 int x,
 int y,
 Color background
public static function DrawImageDisabled(
   graphics : Graphics,
 image : Image,
 x : int,
 y : int,
 background : Color


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


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


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

© 2015 Microsoft