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 是用來計算已停用影像的填滿色彩,使其一律會針對背景顯示。

適用於

另請參閱