語言

ControlPaint.DrawImageDisabled(Graphics, Image, Int32, Int32, Color) 方法

定義

在禁用狀態下繪製指定的影像。

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)

參數

graphics
Graphics

可以 Graphics 參考的。

image
Image

畫 Image 畫。

x
Int32

邊框影像左上角的 x 座標。

y
Int32

邊框影像左上角的 y 座標。

background
Color

圖片 Color 背後的背景。

備註

該 background 參數用於計算被停用影像的填充顏色,使其始終在背景中可見。

適用於

另請參閱