.NET中原始的ControlPaint类

   控件画图类
摘要: 
    //     提供用于绘制常用 Windows 控件及其元素的方法。无法继承此类。
    public sealed class ControlPaint
    {
        // 摘要: 
        //     获取用作 System.Drawing.SystemColors.ControlDark 颜色的颜色。
        //
        // 返回结果: 
        //     用作 System.Drawing.SystemColors.ControlDark 颜色的 System.Drawing.Color。
        public static Color ContrastControlDark { get; }

        // 摘要: 
        //     创建 16 位颜色位图。
        //
        // 参数: 
        //   bitmap:
        //     要创建的 System.Drawing.Bitmap。
        //
        //   background:
        //     作为背景色的 System.Drawing.Color。
        //
        // 返回结果: 
        //     表示位图句柄的 System.IntPtr。
        public static IntPtr CreateHBitmap16Bit(Bitmap bitmap, Color background);
        //
        // 摘要: 
        //     在图像外创建 Win32 HBITMAP。
        //
        // 参数: 
        //   bitmap:
        //     要创建的 System.Drawing.Bitmap。
        //
        //   monochromeMask:
        //     指向单色掩码的指针。
        //
        // 返回结果: 
        //     表示位图句柄的 System.IntPtr。
        public static IntPtr CreateHBitmapColorMask(Bitmap bitmap, IntPtr monochromeMask);
        //
        // 摘要: 
        //     为指定位图创建颜色掩码,指示哪种颜色应显示为透明。
        //
        // 参数: 
        //   bitmap:
        //     要为其创建透明屏蔽的 System.Drawing.Bitmap。
        //
        // 返回结果: 
        //     System.Drawing.Bitmap 屏蔽的句柄。
        public static IntPtr CreateHBitmapTransparencyMask(Bitmap bitmap);
        //
        // 摘要: 
        //     按指定的颜色为控件创建一个新的深颜色对象。
        //
        // 参数: 
        //   baseColor:
        //     要变深的 System.Drawing.Color。
        //
        // 返回结果: 
        //     System.Drawing.Color 表示控件上的深颜色。
        public static Color Dark(Color baseColor);
        //
        // 摘要: 
        //     根据指定的颜色为控件创建一个新的深颜色对象并按照指定的百分比使其颜色变深。
        //
        // 参数: 
        //   baseColor:
        //     要变深的 System.Drawing.Color。
        //
        //   percOfDarkDark:
        //     要将指定 System.Drawing.Color 变深的百分比。
        //
        // 返回结果: 
        //     一个 System.Drawing.Color,它代表控件上的深色。
        public static Color Dark(Color baseColor, float percOfDarkDark);
        //
        // 摘要: 
        //     按指定的颜色为控件创建一个新的深颜色对象。
        //
        // 参数: 
        //   baseColor:
        //     要变深的 System.Drawing.Color。
        //
        // 返回结果: 
        //     System.Drawing.Color 表示控件上的深颜色。
        public static Color DarkDark(Color baseColor);
        //
        // 摘要: 
        //     在按钮样式控件上指定的边界内、指定的图形表面上绘制具有指定样式和颜色的边框。
        //
        // 参数: 
        //   graphics:
        //     要进行绘制的 System.Drawing.Graphics。
        //
        //   bounds:
        //     一个 System.Drawing.Rectangle,它代表边框尺寸。
        //
        //   color:
        //     边框的 System.Drawing.Color。
        //
        //   style:
        //     System.Windows.Forms.ButtonBorderStyle 值之一,它指定边框的样式。
        public static void DrawBorder(Graphics graphics, Rectangle bounds, Color color, ButtonBorderStyle style);
        //
        // 摘要: 
        //     在按钮样式控件上指定的边界内、指定的图形表面上绘制具有指定的样式、颜色和边框宽度的边框。
        //
        // 参数: 
        //   graphics:
        //     要进行绘制的 System.Drawing.Graphics。
        //
        //   bounds:
        //     一个 System.Drawing.Rectangle,它代表边框尺寸。
        //
        //   leftColor:
        //     边框的左边的 System.Drawing.Color。
        //
        //   leftWidth:
        //     左边框的宽度。
        //
        //   leftStyle:
        //     System.Windows.Forms.ButtonBorderStyle 值之一,它指定左边框的样式。
        //
        //   topColor:
        //     边框的上边的 System.Drawing.Color。
        //
        //   topWidth:
        //     上边框的宽度。
        //
        //   topStyle:
        //     System.Windows.Forms.ButtonBorderStyle 值之一,它指定上边框的样式。
        //
        //   rightColor:
        //     边框的右边的 System.Drawing.Color。
        //
        //   rightWidth:
        //     右边框的宽度。
        //
        //   rightStyle:
        //     System.Windows.Forms.ButtonBorderStyle 值之一,它指定右边框的样式。
        //
        //   bottomColor:
        //     边框的底边的 System.Drawing.Color。
        //
        //   bottomWidth:
        //     下边框的宽度。
        //
        //   bottomStyle:
        //     System.Windows.Forms.ButtonBorderStyle 值之一,它指定下边框的样式。
        public static void DrawBorder(Graphics graphics, Rectangle bounds, Color leftColor, int leftWidth, ButtonBorderStyle leftStyle, Color topColor, int topWidth, ButtonBorderStyle topStyle, Color rightColor, int rightWidth, ButtonBorderStyle rightStyle, Color bottomColor, int bottomWidth, ButtonBorderStyle bottomStyle);
        //
        // 摘要: 
        //     在控件上指定的边界内、指定的图形表面上绘制三维样式边框。
        //
        // 参数: 
        //   graphics:
        //     要进行绘制的 System.Drawing.Graphics。
        //
        //   rectangle:
        //     一个 System.Drawing.Rectangle,它代表边框尺寸。
        public static void DrawBorder3D(Graphics graphics, Rectangle rectangle);
        //
        // 摘要: 
        //     在控件上指定的边界内、指定的图形表面上绘制具有指定样式的三维样式边框。
        //
        // 参数: 
        //   graphics:
        //     要进行绘制的 System.Drawing.Graphics。
        //
        //   rectangle:
        //     一个 System.Drawing.Rectangle,它代表边框尺寸。
        //
        //   style:
        //     System.Windows.Forms.Border3DStyle 值之一,它指定边框的样式。
        public static void DrawBorder3D(Graphics graphics, Rectangle rectangle, Border3DStyle style);
        //
        // 摘要: 
        //     在控件上指定的边界内、指定的图形表面和边上绘制具有指定样式的三维样式边框。
        //
        // 参数: 
        //   graphics:
        //     要进行绘制的 System.Drawing.Graphics。
        //
        //   rectangle:
        //     一个 System.Drawing.Rectangle,它代表边框尺寸。
        //
        //   style:
        //     System.Windows.Forms.Border3DStyle 值之一,它指定边框的样式。
        //
        //   sides:
        //     System.Windows.Forms.Border3DSide 值之一,它指定要在上面绘制边框的矩形的边。
        public static void DrawBorder3D(Graphics graphics, Rectangle rectangle, Border3DStyle style, Border3DSide sides);
        //
        // 摘要: 
        //     在控件上指定的边界内、指定的图形表面上绘制三维样式边框。
        //
        // 参数: 
        //   graphics:
        //     要进行绘制的 System.Drawing.Graphics。
        //
        //   x:
        //     矩形边框左上角的 x 坐标。
        //
        //   y:
        //     矩形边框左上角的 y 坐标。
        //
        //   width:
        //     矩形边框的宽度。
        //
        //   height:
        //     矩形边框的高度。
        [TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
        public static void DrawBorder3D(Graphics graphics, int x, int y, int width, int height);
        //
        // 摘要: 
        //     在控件上指定的边界内、指定的图形表面上绘制具有指定样式的三维样式边框。
        //
        // 参数: 
        //   graphics:
        //     要进行绘制的 System.Drawing.Graphics。
        //
        //   x:
        //     矩形边框左上角的 x 坐标。
        //
        //   y:
        //     矩形边框左上角的 y 坐标。
        //
        //   width:
        //     矩形边框的宽度。
        //
        //   height:
        //     矩形边框的高度。
        //
        //   style:
        //     System.Windows.Forms.Border3DStyle 值之一,它指定边框的样式。
        [TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
        public static void DrawBorder3D(Graphics graphics, int x, int y, int width, int height, Border3DStyle style);
        //
        // 摘要: 
        //     在控件上指定的边界内、指定的图形表面和边上绘制具有指定样式的三维样式边框。
        //
        // 参数: 
        //   graphics:
        //     要进行绘制的 System.Drawing.Graphics。
        //
        //   x:
        //     矩形边框左上角的 x 坐标。
        //
        //   y:
        //     矩形边框左上角的 y 坐标。
        //
        //   width:
        //     矩形边框的宽度。
        //
        //   height:
        //     矩形边框的高度。
        //
        //   style:
        //     System.Windows.Forms.Border3DStyle 值之一,它指定边框的样式。
        //
        //   sides:
        //     在其上绘制边框的矩形的 System.Windows.Forms.Border3DSide。
        public static void DrawBorder3D(Graphics graphics, int x, int y, int width, int height, Border3DStyle style, Border3DSide sides);
        //
        // 摘要: 
        //     在指定的边界内、指定的图形表面上,绘制处于指定状态的按钮控件。
        //
        // 参数: 
        //   graphics:
        //     要进行绘制的 System.Drawing.Graphics。
        //
        //   rectangle:
        //     代表按钮尺寸的 System.Drawing.Rectangle。
        //
        //   state:
        //     System.Windows.Forms.ButtonState 值的按位组合,指定将按钮画入的状态。
        public static void DrawButton(Graphics graphics, Rectangle rectangle, ButtonState state);
        //
        // 摘要: 
        //     在指定的边界内、指定的图形表面上,绘制处于指定状态的按钮控件。
        //
        // 参数: 
        //   graphics:
        //     要进行绘制的 System.Drawing.Graphics。
        //
        //   x:
        //     所绘制矩形左上角的 x 坐标。
        //
        //   y:
        //     所绘制矩形左上角的 y 坐标。
        //
        //   width:
        //     按钮的宽度。
        //
        //   height:
        //     按钮的高度。
        //
        //   state:
        //     System.Windows.Forms.ButtonState 值的按位组合,指定将按钮画入的状态。
        public static void DrawButton(Graphics graphics, int x, int y, int width, int height, ButtonState state);
        //
        // 摘要: 
        //     在指定的边界内、指定的图形表面上,绘制处于指定状态的指定标题按钮控件。
        //
        // 参数: 
        //   graphics:
        //     要进行绘制的 System.Drawing.Graphics。
        //
        //   rectangle:
        //     代表标题按钮尺寸的 System.Drawing.Rectangle。
        //
        //   button:
        //     System.Windows.Forms.CaptionButton 值的其中之一,指定要绘制的标题按钮的类型。
        //
        //   state:
        //     System.Windows.Forms.ButtonState 值的按位组合,指定将按钮画入的状态。
        public static void DrawCaptionButton(Graphics graphics, Rectangle rectangle, CaptionButton button, ButtonState state);
        //
        // 摘要: 
        //     在指定的边界内、指定的图形表面上,绘制处于指定状态的指定标题按钮控件。
        //
        // 参数: 
        //   graphics:
        //     要进行绘制的 System.Drawing.Graphics。
        //
        //   x:
        //     所绘制矩形左上角的 x 坐标。
        //
        //   y:
        //     所绘制矩形左上角的 y 坐标。
        //
        //   width:
        //     所绘制矩形的宽度。
        //
        //   height:
        //     所绘制矩形的高度。
        //
        //   button:
        //     System.Windows.Forms.CaptionButton 值之一,指定要绘制的标题按钮的类型。
        //
        //   state:
        //     System.Windows.Forms.ButtonState 值的按位组合,指定将按钮画入的状态。
        public static void DrawCaptionButton(Graphics graphics, int x, int y, int width, int height, CaptionButton button, ButtonState state);
        //
        // 摘要: 
        //     在指定边界内、指定的图形表面上,绘制处于指定状态的复选框控件。
        //
        // 参数: 
        //   graphics:
        //     要进行绘制的 System.Drawing.Graphics。
        //
        //   rectangle:
        //     代表复选框尺寸的 System.Drawing.Rectangle。
        //
        //   state:
        //     System.Windows.Forms.ButtonState 值的按位组合,指定将复选框画入的状态。
        public static void DrawCheckBox(Graphics graphics, Rectangle rectangle, ButtonState state);
        //
        // 摘要: 
        //     在指定边界内、指定的图形表面上,绘制处于指定状态的复选框控件。
        //
        // 参数: 
        //   graphics:
        //     要进行绘制的 System.Drawing.Graphics。
        //
        //   x:
        //     所绘制矩形左上角的 x 坐标。
        //
        //   y:
        //     所绘制矩形左上角的 y 坐标。
        //
        //   width:
        //     复选框的宽度。
        //
        //   height:
        //     复选框的高度。
        //
        //   state:
        //     System.Windows.Forms.ButtonState 值的按位组合,指定将复选框画入的状态。
        public static void DrawCheckBox(Graphics graphics, int x, int y, int width, int height, ButtonState state);
        //
        // 摘要: 
        //     在组合框控件上绘制位于指定边界内、在指定的图形表面上、处于指定状态的下拉按钮。
        //
        // 参数: 
        //   graphics:
        //     要进行绘制的 System.Drawing.Graphics。
        //
        //   rectangle:
        //     代表组合框尺寸的 System.Drawing.Rectangle。
        //
        //   state:
        //     System.Windows.Forms.ButtonState 值的按位组合,指定将组合框画入的状态。
        public static void DrawComboButton(Graphics graphics, Rectangle rectangle, ButtonState state);
        //
        // 摘要: 
        //     在组合框控件上绘制位于指定边界内、在指定的图形表面上、处于指定状态的下拉按钮。
        //
        // 参数: 
        //   graphics:
        //     要进行绘制的 System.Drawing.Graphics。
        //
        //   x:
        //     矩形边框左上角的 x 坐标。
        //
        //   y:
        //     矩形边框左上角的 y 坐标。
        //
        //   width:
        //     组合框的宽度。
        //
        //   height:
        //     组合框的高度。
        //
        //   state:
        //     System.Windows.Forms.ButtonState 值的按位组合,指定将组合框画入的状态。
        public static void DrawComboButton(Graphics graphics, int x, int y, int width, int height, ButtonState state);
        //
        // 摘要: 
        //     在指定的边界内、指定的图形表面上绘制容器控件抓取柄标志符号。
        //
        // 参数: 
        //   graphics:
        //     要进行绘制的 System.Drawing.Graphics。
        //
        //   bounds:
        //     代表抓取柄标志符号尺寸的 System.Drawing.Rectangle。
        public static void DrawContainerGrabHandle(Graphics graphics, Rectangle bounds);
        //
        // 摘要: 
        //     在指定边界内、指定的图形表面上绘制聚焦框。
        //
        // 参数: 
        //   graphics:
        //     要进行绘制的 System.Drawing.Graphics。
        //
        //   rectangle:
        //     代表抓取柄标志符号尺寸的 System.Drawing.Rectangle。
        public static void DrawFocusRectangle(Graphics graphics, Rectangle rectangle);
        //
        // 摘要: 
        //     在指定边界内、指定的图形表面上绘制聚焦框。
        //
        // 参数: 
        //   graphics:
        //     要进行绘制的 System.Drawing.Graphics。
        //
        //   rectangle:
        //     代表抓取柄标志符号尺寸的 System.Drawing.Rectangle。
        //
        //   foreColor:
        //     System.Drawing.Color 是在其上绘制聚焦框的对象的前景色。
        //
        //   backColor:
        //     System.Drawing.Color 是在其上绘制聚焦框的对象的背景色。
        public static void DrawFocusRectangle(Graphics graphics, Rectangle rectangle, Color foreColor, Color backColor);
        //
        // 摘要: 
        //     在指定的边界内、指定的图形表面上,按样式绘制处于指定状态的标准的选择抓取柄标志符号。
        //
        // 参数: 
        //   graphics:
        //     要进行绘制的 System.Drawing.Graphics。
        //
        //   rectangle:
        //     代表抓取柄标志符号尺寸的 System.Drawing.Rectangle。
        //
        //   primary:
        //     若要将该句柄绘制为主抓取柄,则为 true;否则为 false。
        //
        //   enabled:
        //     若要绘制处于启用状态的句柄,则为 true;否则为 false。
        public static void DrawGrabHandle(Graphics graphics, Rectangle rectangle, bool primary, bool enabled);
        //
        // 摘要: 
        //     在指定的边界内、指定的图形表面上,按指定颜色绘制由点(大小为一个像素,互相之间具有指定的间距)组成的网格。
        //
        // 参数: 
        //   graphics:
        //     要进行绘制的 System.Drawing.Graphics。
        //
        //   area:
        //     表示网格尺寸的 System.Drawing.Rectangle。
        //
        //   pixelsBetweenDots:
        //     指定了网格点之间的高度和宽度的 System.Drawing.Size。
        //
        //   backColor:
        //     网格的背景的 System.Drawing.Color。
        public static void DrawGrid(Graphics graphics, Rectangle area, Size pixelsBetweenDots, Color backColor);
        //
        // 摘要: 
        //     绘制处于禁用状态的指定图像。
        //
        // 参数: 
        //   graphics:
        //     要进行绘制的 System.Drawing.Graphics。
        //
        //   image:
        //     要绘制的 System.Drawing.Image。
        //
        //   x:
        //     边框图像左上角的 x 坐标。
        //
        //   y:
        //     边框图像左上角的 y 坐标。
        //
        //   background:
        //     图像的背景的 System.Drawing.Color。
        public static void DrawImageDisabled(Graphics graphics, Image image, int x, int y, Color background);
        //
        // 摘要: 
        //     在屏幕上指定的边界内、指定的图形表面上,绘制锁定的选择框。指定是否使用主选择方案的颜色来绘制框架。
        //
        // 参数: 
        //   graphics:
        //     要进行绘制的 System.Drawing.Graphics。
        //
        //   rectangle:
        //     代表框架尺寸的 System.Drawing.Rectangle。
        //
        //   primary:
        //     若要使用主选择方案的颜色绘制此框架,则为 true;否则为 false。
        public static void DrawLockedFrame(Graphics graphics, Rectangle rectangle, bool primary);
        //
        // 摘要: 
        //     在菜单项控件上指定的边界内、指定的表面上,绘制指定的菜单标志符号。
        //
        // 参数: 
        //   graphics:
        //     要进行绘制的 System.Drawing.Graphics。
        //
        //   rectangle:
        //     代表标志符号尺寸的 System.Drawing.Rectangle。
        //
        //   glyph:
        //     System.Windows.Forms.MenuGlyph 值的其中之一,指定将要绘制的图像。
        public static void DrawMenuGlyph(Graphics graphics, Rectangle rectangle, MenuGlyph glyph);
        //
        // 摘要: 
        //     在菜单项控件上指定的边界内、指定的图面上绘制指定的菜单标志符号,用 backColor 参数中指定的颜色替换 System.Drawing.Color.White,并用
        //     foreColor 参数中指定的颜色替换 System.Drawing.Color.Black。
        //
        // 参数: 
        //   graphics:
        //     要进行绘制的 System.Drawing.Graphics。
        //
        //   rectangle:
        //     代表标志符号尺寸的 System.Drawing.Rectangle。
        //
        //   glyph:
        //     System.Windows.Forms.MenuGlyph 值的其中之一,指定将要绘制的图像。
        //
        //   foreColor:
        //     替换 System.Drawing.Color.White 作为前景色的颜色。
        //
        //   backColor:
        //     替换 System.Drawing.Color.Black 作为背景色的颜色。
        public static void DrawMenuGlyph(Graphics graphics, Rectangle rectangle, MenuGlyph glyph, Color foreColor, Color backColor);
        //
        // 摘要: 
        //     在菜单项控件上指定的边界内、指定的表面上,绘制指定的菜单标志符号。
        //
        // 参数: 
        //   graphics:
        //     要进行绘制的 System.Drawing.Graphics。
        //
        //   x:
        //     所绘制矩形左上角的 x 坐标。
        //
        //   y:
        //     所绘制矩形左上角的 y 坐标。
        //
        //   width:
        //     菜单标志符号的宽度。
        //
        //   height:
        //     菜单标志符号的高度。
        //
        //   glyph:
        //     System.Windows.Forms.MenuGlyph 值的其中之一,指定将要绘制的图像。
        public static void DrawMenuGlyph(Graphics graphics, int x, int y, int width, int height, MenuGlyph glyph);
        //
        // 摘要: 
        //     在菜单项控件上指定的图面上,以指定的坐标、高度和宽度绘制指定的菜单标志符号,用 backColor 参数中指定的颜色替换 System.Drawing.Color.White,并用
        //     foreColor 参数中指定的颜色替换 System.Drawing.Color.Black。
        //
        // 参数: 
        //   graphics:
        //     要进行绘制的 System.Drawing.Graphics。
        //
        //   x:
        //     所绘制矩形左上角的 x 坐标。
        //
        //   y:
        //     所绘制矩形左上角的 y 坐标。
        //
        //   width:
        //     菜单标志符号的宽度。
        //
        //   height:
        //     菜单标志符号的高度。
        //
        //   glyph:
        //     System.Windows.Forms.MenuGlyph 值的其中之一,指定将要绘制的图像。
        //
        //   foreColor:
        //     替换 System.Drawing.Color.White 作为前景色的颜色。
        //
        //   backColor:
        //     替换 System.Drawing.Color.Black 作为背景色的颜色。
        [TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
        public static void DrawMenuGlyph(Graphics graphics, int x, int y, int width, int height, MenuGlyph glyph, Color foreColor, Color backColor);
        //
        // 摘要: 
        //     在指定边界内、指定的图形表面上,绘制处于指定状态的三态复选框控件。
        //
        // 参数: 
        //   graphics:
        //     要进行绘制的 System.Drawing.Graphics。
        //
        //   rectangle:
        //     代表复选框尺寸的 System.Drawing.Rectangle。
        //
        //   state:
        //     System.Windows.Forms.ButtonState 值的按位组合,指定将复选框画入的状态。
        public static void DrawMixedCheckBox(Graphics graphics, Rectangle rectangle, ButtonState state);
        //
        // 摘要: 
        //     在指定边界内、指定的图形表面上,绘制处于指定状态的三态复选框控件。
        //
        // 参数: 
        //   graphics:
        //     要进行绘制的 System.Drawing.Graphics。
        //
        //   x:
        //     所绘制矩形左上角的 x 坐标。
        //
        //   y:
        //     所绘制矩形左上角的 y 坐标。
        //
        //   width:
        //     复选框的宽度。
        //
        //   height:
        //     复选框的高度。
        //
        //   state:
        //     System.Windows.Forms.ButtonState 值的按位组合,指定将复选框画入的状态。
        public static void DrawMixedCheckBox(Graphics graphics, int x, int y, int width, int height, ButtonState state);
        //
        // 摘要: 
        //     在指定边界内、指定的图形表面上,绘制处于指定状态的单选按钮控件。
        //
        // 参数: 
        //   graphics:
        //     要进行绘制的 System.Drawing.Graphics。
        //
        //   rectangle:
        //     代表单选按钮尺寸的 System.Drawing.Rectangle。
        //
        //   state:
        //     System.Windows.Forms.ButtonState 值的按位组合,指定将单选按钮画入的状态。
        public static void DrawRadioButton(Graphics graphics, Rectangle rectangle, ButtonState state);
        //
        // 摘要: 
        //     在指定边界内、指定的图形表面上,绘制处于指定状态的单选按钮控件。
        //
        // 参数: 
        //   graphics:
        //     要进行绘制的 System.Drawing.Graphics。
        //
        //   x:
        //     所绘制矩形左上角的 x 坐标。
        //
        //   y:
        //     所绘制矩形左上角的 y 坐标。
        //
        //   width:
        //     单选按钮的宽度。
        //
        //   height:
        //     单选按钮的高度。
        //
        //   state:
        //     System.Windows.Forms.ButtonState 值的按位组合,指定将单选按钮画入的状态。
        public static void DrawRadioButton(Graphics graphics, int x, int y, int width, int height, ButtonState state);
        //
        // 摘要: 
        //     在屏幕上的指定边界内,按指定背景色绘制处于指定状态的可逆框架。
        //
        // 参数: 
        //   rectangle:
        //     代表要绘制矩形的尺寸的 System.Drawing.Rectangle(采用屏幕坐标)。
        //
        //   backColor:
        //     框架的背景的 System.Drawing.Color。
        //
        //   style:
        //     System.Windows.Forms.FrameStyle 值之一,它指定框架的样式。
        public static void DrawReversibleFrame(Rectangle rectangle, Color backColor, FrameStyle style);
        //
        // 摘要: 
        //     在屏幕上指定的起始点和结束点内绘制具有指定背景色的可逆线。
        //
        // 参数: 
        //   start:
        //     用屏幕坐标表示的线的起始 System.Drawing.Point。
        //
        //   end:
        //     用屏幕坐标表示的线的结束 System.Drawing.Point。
        //
        //   backColor:
        //     线的背景的 System.Drawing.Color。
        public static void DrawReversibleLine(Point start, Point end, Color backColor);
        //
        // 摘要: 
        //     在滚动条控件上绘制位于指定边界内、在指定的图形表面上、处于指定状态的指定滚动按钮。
        //
        // 参数: 
        //   graphics:
        //     要进行绘制的 System.Drawing.Graphics。
        //
        //   rectangle:
        //     代表标志符号尺寸的 System.Drawing.Rectangle。
        //
        //   button:
        //     System.Windows.Forms.ScrollButton 值的其中之一,指定要绘制的滚动箭头的类型。
        //
        //   state:
        //     System.Windows.Forms.ButtonState 值的按位组合,指定要将滚动按钮画入的状态。
        public static void DrawScrollButton(Graphics graphics, Rectangle rectangle, ScrollButton button, ButtonState state);
        //
        // 摘要: 
        //     在滚动条控件上绘制位于指定边界内、在指定的图形表面上、处于指定状态的指定滚动按钮。
        //
        // 参数: 
        //   graphics:
        //     要进行绘制的 System.Drawing.Graphics。
        //
        //   x:
        //     所绘制矩形左上角的 x 坐标。
        //
        //   y:
        //     所绘制矩形左上角的 y 坐标。
        //
        //   width:
        //     滚动按钮的宽度。
        //
        //   height:
        //     滚动按钮的高度。
        //
        //   button:
        //     System.Windows.Forms.ScrollButton 值的其中之一,指定要绘制的滚动箭头的类型。
        //
        //   state:
        //     System.Windows.Forms.ButtonState 值的按位组合,指定要将滚动按钮画入的状态。
        public static void DrawScrollButton(Graphics graphics, int x, int y, int width, int height, ScrollButton button, ButtonState state);
        //
        // 摘要: 
        //     在指定的图形表面上,按指定的内部与外部尺寸和指定的背景色绘制处于指定状态的标准选择框架。
        //
        // 参数: 
        //   graphics:
        //     要进行绘制的 System.Drawing.Graphics。
        //
        //   active:
        //     若要绘制处于活动状态的选择框架,则为 true;否则为 false。
        //
        //   outsideRect:
        //     代表选择框架外边界的 System.Drawing.Rectangle。
        //
        //   insideRect:
        //     代表选择框架内边界的 System.Drawing.Rectangle。
        //
        //   backColor:
        //     框架的背景的 System.Drawing.Color。
        public static void DrawSelectionFrame(Graphics graphics, bool active, Rectangle outsideRect, Rectangle insideRect, Color backColor);
        //
        // 摘要: 
        //     在窗体上绘制位于指定的图形表面上、具有指定边界和背景色的大小手柄。
        //
        // 参数: 
        //   graphics:
        //     要进行绘制的 System.Drawing.Graphics。
        //
        //   backColor:
        //     背景的 System.Drawing.Color,使用它来确定大小手柄的颜色。
        //
        //   bounds:
        //     代表大小手柄尺寸的 System.Drawing.Rectangle。
        public static void DrawSizeGrip(Graphics graphics, Color backColor, Rectangle bounds);
        //
        // 摘要: 
        //     在窗体上绘制位于指定的图形表面上、具有指定边界和背景色的大小手柄。
        //
        // 参数: 
        //   graphics:
        //     要进行绘制的 System.Drawing.Graphics。
        //
        //   backColor:
        //     背景的 System.Drawing.Color,使用它来确定大小手柄的颜色。
        //
        //   x:
        //     大小手柄的左上角的 x 坐标。
        //
        //   y:
        //     大小手柄的左上角的 y 坐标。
        //
        //   width:
        //     大小手柄的宽度。
        //
        //   height:
        //     大小手柄的高度。
        public static void DrawSizeGrip(Graphics graphics, Color backColor, int x, int y, int width, int height);
        //
        // 摘要: 
        //     在指定图形表面上的指定边界内,以指定的字体、颜色和格式绘制处于禁用状态的指定字符串。
        //
        // 参数: 
        //   graphics:
        //     要进行绘制的 System.Drawing.Graphics。
        //
        //   s:
        //     要绘制的字符串。
        //
        //   font:
        //     绘制字符串所用的 System.Drawing.Font。
        //
        //   color:
        //     字符串背景的 System.Drawing.Color。
        //
        //   layoutRectangle:
        //     一个 System.Drawing.RectangleF,它表示字符串的尺寸。
        //
        //   format:
        //     应用于字符串的 System.Drawing.StringFormat。
        public static void DrawStringDisabled(Graphics graphics, string s, Font font, Color color, RectangleF layoutRectangle, StringFormat format);
        //
        // 摘要: 
        //     使用基于 GDI 的专用 System.Windows.Forms.TextRenderer,在指定图形表面上的指定边界内,以指定的字体、颜色和格式绘制处于禁用状态的指定字符串。
        //
        // 参数: 
        //   dc:
        //     基于 GDI 的 System.Windows.Forms.TextRenderer。
        //
        //   s:
        //     要绘制的字符串。
        //
        //   font:
        //     绘制字符串所用的 System.Drawing.Font。
        //
        //   color:
        //     字符串背景的 System.Drawing.Color。
        //
        //   layoutRectangle:
        //     一个 System.Drawing.RectangleF,它表示字符串的尺寸。
        //
        //   format:
        //     应用于字符串的 System.Drawing.StringFormat。
        public static void DrawStringDisabled(IDeviceContext dc, string s, Font font, Color color, Rectangle layoutRectangle, TextFormatFlags format);
        //
        // 摘要: 
        //     按照适合禁用项的样式绘制边框。
        //
        // 参数: 
        //   graphics:
        //     要进行绘制的 System.Drawing.Graphics。
        //
        //   bounds:
        //     一个 System.Drawing.Rectangle,它代表边框尺寸。
        public static void DrawVisualStyleBorder(Graphics graphics, Rectangle bounds);
        //
        // 摘要: 
        //     在屏幕上绘制实心的可逆矩形。
        //
        // 参数: 
        //   rectangle:
        //     代表要填充矩形的尺寸的 System.Drawing.Rectangle(采用屏幕坐标)。
        //
        //   backColor:
        //     填充区域的背景的 System.Drawing.Color。
        public static void FillReversibleRectangle(Rectangle rectangle, Color backColor);
        //
        // 摘要: 
        //     根据指定的颜色为控件创建一个新的浅颜色对象。
        //
        // 参数: 
        //   baseColor:
        //     要变浅的 System.Drawing.Color。
        //
        // 返回结果: 
        //     一个 System.Drawing.Color,它代表控件上的浅颜色。
        public static Color Light(Color baseColor);
        //
        // 摘要: 
        //     按指定颜色为控件创建一个新的浅颜色对象,并按指定的百分比将其变浅。
        //
        // 参数: 
        //   baseColor:
        //     要变浅的 System.Drawing.Color。
        //
        //   percOfLightLight:
        //     要将指定 System.Drawing.Color 变浅的百分比。
        //
        // 返回结果: 
        //     一个 System.Drawing.Color,它代表控件上的浅颜色。
        public static Color Light(Color baseColor, float percOfLightLight);
        //
        // 摘要: 
        //     根据指定的颜色为控件创建一个新的浅颜色对象。
        //
        // 参数: 
        //   baseColor:
        //     要变浅的 System.Drawing.Color。
        //
        // 返回结果: 
        //     一个 System.Drawing.Color,它代表控件上的浅颜色。
        public static Color LightLight(Color baseColor);
    }

猜你喜欢

转载自blog.csdn.net/fuweiping/article/details/42677689
今日推荐