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 参数用于计算已禁用图像的填充颜色,以便它始终在背景中可见。

适用于

另请参阅