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

适用于

另请参阅