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

Definition

Ritar den angivna bilden i inaktiverat tillstånd.

public:
 static void DrawImageDisabled(System::Drawing::Graphics ^ graphics, System::Drawing::Image ^ image, int x, int y, System::Drawing::Color background);
public static void DrawImageDisabled(System.Drawing.Graphics graphics, System.Drawing.Image image, int x, int y, System.Drawing.Color background);
static member DrawImageDisabled : System.Drawing.Graphics * System.Drawing.Image * int * int * System.Drawing.Color -> unit
Public Shared Sub DrawImageDisabled (graphics As Graphics, image As Image, x As Integer, y As Integer, background As Color)

Parametrar

graphics
Graphics

Att Graphics dra på.

image
Image

Att Image rita.

x
Int32

X-koordinaten överst till vänster i kantlinjebilden.

y
Int32

y-koordinaten överst till vänster i kantlinjebilden.

background
Color

Bakgrunden Color bakom bilden.

Kommentarer

Parametern background används för att beräkna fyllningsfärgen för den inaktiverade bilden så att den alltid visas mot bakgrunden.

Gäller för

Se även