Freigeben über


ControlPaint.DrawImageDisabled-Methode

Zeichnet das angegebene Bild im deaktivierten Zustand.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

Syntax

'Declaration
Public Shared Sub DrawImageDisabled ( _
    graphics As Graphics, _
    image As Image, _
    x As Integer, _
    y As Integer, _
    background As Color _
)
'Usage
Dim graphics As Graphics
Dim image As Image
Dim x As Integer
Dim y As Integer
Dim background As Color

ControlPaint.DrawImageDisabled(graphics, image, x, y, background)
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 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
)

Parameter

  • graphics
    Die Instanz von Graphics, in der gezeichnet werden soll.
  • image
    Das zu zeichnende Image.
  • x
    Die x-Koordinate der oberen linken Seite des Rahmenbilds.
  • y
    Die y-Koordinate der oberen linken Seite des Rahmenbilds.
  • background
    Die Color des Hintergrunds hinter dem Bild.

Hinweise

Mit dem background-Parameter wird die Füllfarbe des deaktivierten Bilds berechnet, sodass dieses sich immer vom Hintergrund abhebt.

Plattformen

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile für Pocket PC, Windows Mobile für Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

Siehe auch

Referenz

ControlPaint-Klasse
ControlPaint-Member
System.Windows.Forms-Namespace
Image