• System.Drawing.Graphics.cs


    ylbtech-System.Drawing.Graphics.cs
    1.程序集 System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a返回顶部
    1、
    #region 程序集 System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
    // C:Program Files (x86)Reference AssembliesMicrosoftFramework.NETFrameworkv4.5.2System.Drawing.dll
    #endregion
    
    using System.ComponentModel;
    using System.Drawing.Drawing2D;
    using System.Drawing.Imaging;
    using System.Drawing.Text;
    
    namespace System.Drawing
    {
        public sealed class Graphics : MarshalByRefObject, IDeviceContext, IDisposable
        {
            ~Graphics();
    
            public CompositingMode CompositingMode { get; set; }
            public GraphicsUnit PageUnit { get; set; }
            public Matrix Transform { get; set; }
            public InterpolationMode InterpolationMode { get; set; }
            public float DpiY { get; }
            public Region Clip { get; set; }
            public PixelOffsetMode PixelOffsetMode { get; set; }
            public float PageScale { get; set; }
            public RectangleF ClipBounds { get; }
            public RectangleF VisibleClipBounds { get; }
            public bool IsVisibleClipEmpty { get; }
            public SmoothingMode SmoothingMode { get; set; }
            public int TextContrast { get; set; }
            public TextRenderingHint TextRenderingHint { get; set; }
            public CompositingQuality CompositingQuality { get; set; }
            public Point RenderingOrigin { get; set; }
            public bool IsClipEmpty { get; }
            public float DpiX { get; }
    
            [EditorBrowsable(EditorBrowsableState.Advanced)]
            public static Graphics FromHdc(IntPtr hdc);
            [EditorBrowsable(EditorBrowsableState.Advanced)]
            public static Graphics FromHdc(IntPtr hdc, IntPtr hdevice);
            [EditorBrowsable(EditorBrowsableState.Advanced)]
            public static Graphics FromHdcInternal(IntPtr hdc);
            [EditorBrowsable(EditorBrowsableState.Advanced)]
            public static Graphics FromHwnd(IntPtr hwnd);
            [EditorBrowsable(EditorBrowsableState.Advanced)]
            public static Graphics FromHwndInternal(IntPtr hwnd);
            public static Graphics FromImage(Image image);
            public static IntPtr GetHalftonePalette();
            public void AddMetafileComment(byte[] data);
            public GraphicsContainer BeginContainer(RectangleF dstrect, RectangleF srcrect, GraphicsUnit unit);
            public GraphicsContainer BeginContainer();
            public GraphicsContainer BeginContainer(Rectangle dstrect, Rectangle srcrect, GraphicsUnit unit);
            public void Clear(Color color);
            public void CopyFromScreen(Point upperLeftSource, Point upperLeftDestination, Size blockRegionSize, CopyPixelOperation copyPixelOperation);
            public void CopyFromScreen(Point upperLeftSource, Point upperLeftDestination, Size blockRegionSize);
            public void CopyFromScreen(int sourceX, int sourceY, int destinationX, int destinationY, Size blockRegionSize);
            public void CopyFromScreen(int sourceX, int sourceY, int destinationX, int destinationY, Size blockRegionSize, CopyPixelOperation copyPixelOperation);
            public void Dispose();
            public void DrawArc(Pen pen, int x, int y, int width, int height, int startAngle, int sweepAngle);
            public void DrawArc(Pen pen, Rectangle rect, float startAngle, float sweepAngle);
            public void DrawArc(Pen pen, float x, float y, float width, float height, float startAngle, float sweepAngle);
            public void DrawArc(Pen pen, RectangleF rect, float startAngle, float sweepAngle);
            public void DrawBezier(Pen pen, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4);
            public void DrawBezier(Pen pen, PointF pt1, PointF pt2, PointF pt3, PointF pt4);
            public void DrawBezier(Pen pen, Point pt1, Point pt2, Point pt3, Point pt4);
            public void DrawBeziers(Pen pen, PointF[] points);
            public void DrawBeziers(Pen pen, Point[] points);
            public void DrawClosedCurve(Pen pen, PointF[] points, float tension, FillMode fillmode);
            public void DrawClosedCurve(Pen pen, PointF[] points);
            public void DrawClosedCurve(Pen pen, Point[] points, float tension, FillMode fillmode);
            public void DrawClosedCurve(Pen pen, Point[] points);
            public void DrawCurve(Pen pen, PointF[] points, float tension);
            public void DrawCurve(Pen pen, Point[] points, int offset, int numberOfSegments, float tension);
            public void DrawCurve(Pen pen, Point[] points, float tension);
            public void DrawCurve(Pen pen, Point[] points);
            public void DrawCurve(Pen pen, PointF[] points, int offset, int numberOfSegments, float tension);
            public void DrawCurve(Pen pen, PointF[] points, int offset, int numberOfSegments);
            public void DrawCurve(Pen pen, PointF[] points);
            public void DrawEllipse(Pen pen, RectangleF rect);
            public void DrawEllipse(Pen pen, float x, float y, float width, float height);
            public void DrawEllipse(Pen pen, Rectangle rect);
            public void DrawEllipse(Pen pen, int x, int y, int width, int height);
            public void DrawIcon(Icon icon, int x, int y);
            public void DrawIcon(Icon icon, Rectangle targetRect);
            public void DrawIconUnstretched(Icon icon, Rectangle targetRect);
            public void DrawImage(Image image, Point[] destPoints, Rectangle srcRect, GraphicsUnit srcUnit);
            public void DrawImage(Image image, PointF point);
            public void DrawImage(Image image, float x, float y);
            public void DrawImage(Image image, RectangleF rect);
            public void DrawImage(Image image, float x, float y, float width, float height);
            public void DrawImage(Image image, int x, int y);
            public void DrawImage(Image image, Rectangle rect);
            public void DrawImage(Image image, int x, int y, int width, int height);
            public void DrawImage(Image image, PointF[] destPoints);
            public void DrawImage(Image image, Point[] destPoints);
            public void DrawImage(Image image, float x, float y, RectangleF srcRect, GraphicsUnit srcUnit);
            public void DrawImage(Image image, int x, int y, Rectangle srcRect, GraphicsUnit srcUnit);
            public void DrawImage(Image image, RectangleF destRect, RectangleF srcRect, GraphicsUnit srcUnit);
            public void DrawImage(Image image, Rectangle destRect, Rectangle srcRect, GraphicsUnit srcUnit);
            public void DrawImage(Image image, PointF[] destPoints, RectangleF srcRect, GraphicsUnit srcUnit);
            public void DrawImage(Image image, PointF[] destPoints, RectangleF srcRect, GraphicsUnit srcUnit, ImageAttributes imageAttr);
            public void DrawImage(Image image, PointF[] destPoints, RectangleF srcRect, GraphicsUnit srcUnit, ImageAttributes imageAttr, DrawImageAbort callback);
            public void DrawImage(Image image, Rectangle destRect, int srcX, int srcY, int srcWidth, int srcHeight, GraphicsUnit srcUnit, ImageAttributes imageAttrs, DrawImageAbort callback, IntPtr callbackData);
            public void DrawImage(Image image, Rectangle destRect, int srcX, int srcY, int srcWidth, int srcHeight, GraphicsUnit srcUnit, ImageAttributes imageAttr);
            public void DrawImage(Image image, Rectangle destRect, int srcX, int srcY, int srcWidth, int srcHeight, GraphicsUnit srcUnit);
            public void DrawImage(Image image, Rectangle destRect, float srcX, float srcY, float srcWidth, float srcHeight, GraphicsUnit srcUnit, ImageAttributes imageAttrs, DrawImageAbort callback, IntPtr callbackData);
            public void DrawImage(Image image, Rectangle destRect, float srcX, float srcY, float srcWidth, float srcHeight, GraphicsUnit srcUnit, ImageAttributes imageAttrs, DrawImageAbort callback);
            public void DrawImage(Image image, Rectangle destRect, float srcX, float srcY, float srcWidth, float srcHeight, GraphicsUnit srcUnit, ImageAttributes imageAttrs);
            public void DrawImage(Image image, Rectangle destRect, float srcX, float srcY, float srcWidth, float srcHeight, GraphicsUnit srcUnit);
            public void DrawImage(Image image, Point[] destPoints, Rectangle srcRect, GraphicsUnit srcUnit, ImageAttributes imageAttr, DrawImageAbort callback, int callbackData);
            public void DrawImage(Image image, Point[] destPoints, Rectangle srcRect, GraphicsUnit srcUnit, ImageAttributes imageAttr, DrawImageAbort callback);
            public void DrawImage(Image image, Point[] destPoints, Rectangle srcRect, GraphicsUnit srcUnit, ImageAttributes imageAttr);
            public void DrawImage(Image image, PointF[] destPoints, RectangleF srcRect, GraphicsUnit srcUnit, ImageAttributes imageAttr, DrawImageAbort callback, int callbackData);
            public void DrawImage(Image image, Rectangle destRect, int srcX, int srcY, int srcWidth, int srcHeight, GraphicsUnit srcUnit, ImageAttributes imageAttr, DrawImageAbort callback);
            public void DrawImage(Image image, Point point);
            public void DrawImageUnscaled(Image image, Point point);
            public void DrawImageUnscaled(Image image, int x, int y);
            public void DrawImageUnscaled(Image image, Rectangle rect);
            public void DrawImageUnscaled(Image image, int x, int y, int width, int height);
            public void DrawImageUnscaledAndClipped(Image image, Rectangle rect);
            public void DrawLine(Pen pen, float x1, float y1, float x2, float y2);
            public void DrawLine(Pen pen, PointF pt1, PointF pt2);
            public void DrawLine(Pen pen, int x1, int y1, int x2, int y2);
            public void DrawLine(Pen pen, Point pt1, Point pt2);
            public void DrawLines(Pen pen, PointF[] points);
            public void DrawLines(Pen pen, Point[] points);
            public void DrawPath(Pen pen, GraphicsPath path);
            public void DrawPie(Pen pen, float x, float y, float width, float height, float startAngle, float sweepAngle);
            public void DrawPie(Pen pen, Rectangle rect, float startAngle, float sweepAngle);
            public void DrawPie(Pen pen, int x, int y, int width, int height, int startAngle, int sweepAngle);
            public void DrawPie(Pen pen, RectangleF rect, float startAngle, float sweepAngle);
            public void DrawPolygon(Pen pen, PointF[] points);
            public void DrawPolygon(Pen pen, Point[] points);
            public void DrawRectangle(Pen pen, Rectangle rect);
            public void DrawRectangle(Pen pen, float x, float y, float width, float height);
            public void DrawRectangle(Pen pen, int x, int y, int width, int height);
            public void DrawRectangles(Pen pen, Rectangle[] rects);
            public void DrawRectangles(Pen pen, RectangleF[] rects);
            public void DrawString(string s, Font font, Brush brush, RectangleF layoutRectangle, StringFormat format);
            public void DrawString(string s, Font font, Brush brush, RectangleF layoutRectangle);
            public void DrawString(string s, Font font, Brush brush, PointF point, StringFormat format);
            public void DrawString(string s, Font font, Brush brush, float x, float y, StringFormat format);
            public void DrawString(string s, Font font, Brush brush, PointF point);
            public void DrawString(string s, Font font, Brush brush, float x, float y);
            public void EndContainer(GraphicsContainer container);
            public void EnumerateMetafile(Metafile metafile, PointF destPoint, EnumerateMetafileProc callback, IntPtr callbackData, ImageAttributes imageAttr);
            public void EnumerateMetafile(Metafile metafile, PointF destPoint, EnumerateMetafileProc callback, IntPtr callbackData);
            public void EnumerateMetafile(Metafile metafile, PointF[] destPoints, EnumerateMetafileProc callback);
            public void EnumerateMetafile(Metafile metafile, Point destPoint, EnumerateMetafileProc callback);
            public void EnumerateMetafile(Metafile metafile, Point destPoint, EnumerateMetafileProc callback, IntPtr callbackData);
            public void EnumerateMetafile(Metafile metafile, Point destPoint, EnumerateMetafileProc callback, IntPtr callbackData, ImageAttributes imageAttr);
            public void EnumerateMetafile(Metafile metafile, RectangleF destRect, EnumerateMetafileProc callback);
            public void EnumerateMetafile(Metafile metafile, RectangleF destRect, EnumerateMetafileProc callback, IntPtr callbackData);
            public void EnumerateMetafile(Metafile metafile, RectangleF destRect, EnumerateMetafileProc callback, IntPtr callbackData, ImageAttributes imageAttr);
            public void EnumerateMetafile(Metafile metafile, Rectangle destRect, EnumerateMetafileProc callback);
            public void EnumerateMetafile(Metafile metafile, PointF destPoint, EnumerateMetafileProc callback);
            public void EnumerateMetafile(Metafile metafile, PointF[] destPoints, EnumerateMetafileProc callback, IntPtr callbackData);
            public void EnumerateMetafile(Metafile metafile, Point[] destPoints, EnumerateMetafileProc callback, IntPtr callbackData);
            public void EnumerateMetafile(Metafile metafile, Point[] destPoints, EnumerateMetafileProc callback);
            public void EnumerateMetafile(Metafile metafile, Point[] destPoints, Rectangle srcRect, GraphicsUnit unit, EnumerateMetafileProc callback, IntPtr callbackData, ImageAttributes imageAttr);
            public void EnumerateMetafile(Metafile metafile, Point[] destPoints, Rectangle srcRect, GraphicsUnit srcUnit, EnumerateMetafileProc callback, IntPtr callbackData);
            public void EnumerateMetafile(Metafile metafile, Point[] destPoints, Rectangle srcRect, GraphicsUnit srcUnit, EnumerateMetafileProc callback);
            public void EnumerateMetafile(Metafile metafile, PointF[] destPoints, RectangleF srcRect, GraphicsUnit unit, EnumerateMetafileProc callback, IntPtr callbackData, ImageAttributes imageAttr);
            public void EnumerateMetafile(Metafile metafile, PointF[] destPoints, RectangleF srcRect, GraphicsUnit srcUnit, EnumerateMetafileProc callback, IntPtr callbackData);
            public void EnumerateMetafile(Metafile metafile, PointF[] destPoints, RectangleF srcRect, GraphicsUnit srcUnit, EnumerateMetafileProc callback);
            public void EnumerateMetafile(Metafile metafile, Rectangle destRect, Rectangle srcRect, GraphicsUnit unit, EnumerateMetafileProc callback, IntPtr callbackData, ImageAttributes imageAttr);
            public void EnumerateMetafile(Metafile metafile, Rectangle destRect, Rectangle srcRect, GraphicsUnit srcUnit, EnumerateMetafileProc callback, IntPtr callbackData);
            public void EnumerateMetafile(Metafile metafile, Rectangle destRect, Rectangle srcRect, GraphicsUnit srcUnit, EnumerateMetafileProc callback);
            public void EnumerateMetafile(Metafile metafile, PointF[] destPoints, EnumerateMetafileProc callback, IntPtr callbackData, ImageAttributes imageAttr);
            public void EnumerateMetafile(Metafile metafile, RectangleF destRect, RectangleF srcRect, GraphicsUnit unit, EnumerateMetafileProc callback, IntPtr callbackData, ImageAttributes imageAttr);
            public void EnumerateMetafile(Metafile metafile, RectangleF destRect, RectangleF srcRect, GraphicsUnit srcUnit, EnumerateMetafileProc callback);
            public void EnumerateMetafile(Metafile metafile, Point destPoint, Rectangle srcRect, GraphicsUnit unit, EnumerateMetafileProc callback, IntPtr callbackData, ImageAttributes imageAttr);
            public void EnumerateMetafile(Metafile metafile, Point destPoint, Rectangle srcRect, GraphicsUnit srcUnit, EnumerateMetafileProc callback, IntPtr callbackData);
            public void EnumerateMetafile(Metafile metafile, Point destPoint, Rectangle srcRect, GraphicsUnit srcUnit, EnumerateMetafileProc callback);
            public void EnumerateMetafile(Metafile metafile, Rectangle destRect, EnumerateMetafileProc callback, IntPtr callbackData);
            public void EnumerateMetafile(Metafile metafile, PointF destPoint, RectangleF srcRect, GraphicsUnit unit, EnumerateMetafileProc callback, IntPtr callbackData, ImageAttributes imageAttr);
            public void EnumerateMetafile(Metafile metafile, PointF destPoint, RectangleF srcRect, GraphicsUnit srcUnit, EnumerateMetafileProc callback, IntPtr callbackData);
            public void EnumerateMetafile(Metafile metafile, PointF destPoint, RectangleF srcRect, GraphicsUnit srcUnit, EnumerateMetafileProc callback);
            public void EnumerateMetafile(Metafile metafile, Point[] destPoints, EnumerateMetafileProc callback, IntPtr callbackData, ImageAttributes imageAttr);
            public void EnumerateMetafile(Metafile metafile, RectangleF destRect, RectangleF srcRect, GraphicsUnit srcUnit, EnumerateMetafileProc callback, IntPtr callbackData);
            public void EnumerateMetafile(Metafile metafile, Rectangle destRect, EnumerateMetafileProc callback, IntPtr callbackData, ImageAttributes imageAttr);
            public void ExcludeClip(Rectangle rect);
            public void ExcludeClip(Region region);
            public void FillClosedCurve(Brush brush, PointF[] points, FillMode fillmode);
            public void FillClosedCurve(Brush brush, PointF[] points, FillMode fillmode, float tension);
            public void FillClosedCurve(Brush brush, Point[] points);
            public void FillClosedCurve(Brush brush, Point[] points, FillMode fillmode, float tension);
            public void FillClosedCurve(Brush brush, Point[] points, FillMode fillmode);
            public void FillClosedCurve(Brush brush, PointF[] points);
            public void FillEllipse(Brush brush, RectangleF rect);
            public void FillEllipse(Brush brush, float x, float y, float width, float height);
            public void FillEllipse(Brush brush, Rectangle rect);
            public void FillEllipse(Brush brush, int x, int y, int width, int height);
            public void FillPath(Brush brush, GraphicsPath path);
            public void FillPie(Brush brush, int x, int y, int width, int height, int startAngle, int sweepAngle);
            public void FillPie(Brush brush, Rectangle rect, float startAngle, float sweepAngle);
            public void FillPie(Brush brush, float x, float y, float width, float height, float startAngle, float sweepAngle);
            public void FillPolygon(Brush brush, PointF[] points);
            public void FillPolygon(Brush brush, PointF[] points, FillMode fillMode);
            public void FillPolygon(Brush brush, Point[] points);
            public void FillPolygon(Brush brush, Point[] points, FillMode fillMode);
            public void FillRectangle(Brush brush, float x, float y, float width, float height);
            public void FillRectangle(Brush brush, int x, int y, int width, int height);
            public void FillRectangle(Brush brush, Rectangle rect);
            public void FillRectangle(Brush brush, RectangleF rect);
            public void FillRectangles(Brush brush, Rectangle[] rects);
            public void FillRectangles(Brush brush, RectangleF[] rects);
            public void FillRegion(Brush brush, Region region);
            public void Flush(FlushIntention intention);
            public void Flush();
            [EditorBrowsable(EditorBrowsableState.Never)]
            public object GetContextInfo();
            public IntPtr GetHdc();
            public Color GetNearestColor(Color color);
            public void IntersectClip(Region region);
            public void IntersectClip(Rectangle rect);
            public void IntersectClip(RectangleF rect);
            public bool IsVisible(int x, int y);
            public bool IsVisible(PointF point);
            public bool IsVisible(int x, int y, int width, int height);
            public bool IsVisible(Rectangle rect);
            public bool IsVisible(RectangleF rect);
            public bool IsVisible(float x, float y, float width, float height);
            public bool IsVisible(Point point);
            public bool IsVisible(float x, float y);
            public Region[] MeasureCharacterRanges(string text, Font font, RectangleF layoutRect, StringFormat stringFormat);
            public SizeF MeasureString(string text, Font font, SizeF layoutArea, StringFormat stringFormat, out int charactersFitted, out int linesFilled);
            public SizeF MeasureString(string text, Font font, int width);
            public SizeF MeasureString(string text, Font font, int width, StringFormat format);
            public SizeF MeasureString(string text, Font font, PointF origin, StringFormat stringFormat);
            public SizeF MeasureString(string text, Font font, SizeF layoutArea, StringFormat stringFormat);
            public SizeF MeasureString(string text, Font font);
            public SizeF MeasureString(string text, Font font, SizeF layoutArea);
            public void MultiplyTransform(Matrix matrix);
            public void MultiplyTransform(Matrix matrix, MatrixOrder order);
            public void ReleaseHdc();
            [EditorBrowsable(EditorBrowsableState.Advanced)]
            public void ReleaseHdc(IntPtr hdc);
            [EditorBrowsable(EditorBrowsableState.Never)]
            public void ReleaseHdcInternal(IntPtr hdc);
            public void ResetClip();
            public void ResetTransform();
            public void Restore(GraphicsState gstate);
            public void RotateTransform(float angle);
            public void RotateTransform(float angle, MatrixOrder order);
            public GraphicsState Save();
            public void ScaleTransform(float sx, float sy);
            public void ScaleTransform(float sx, float sy, MatrixOrder order);
            public void SetClip(Rectangle rect, CombineMode combineMode);
            public void SetClip(RectangleF rect);
            public void SetClip(RectangleF rect, CombineMode combineMode);
            public void SetClip(GraphicsPath path);
            public void SetClip(GraphicsPath path, CombineMode combineMode);
            public void SetClip(Region region, CombineMode combineMode);
            public void SetClip(Graphics g);
            public void SetClip(Graphics g, CombineMode combineMode);
            public void SetClip(Rectangle rect);
            public void TransformPoints(CoordinateSpace destSpace, CoordinateSpace srcSpace, Point[] pts);
            public void TransformPoints(CoordinateSpace destSpace, CoordinateSpace srcSpace, PointF[] pts);
            public void TranslateClip(float dx, float dy);
            public void TranslateClip(int dx, int dy);
            public void TranslateTransform(float dx, float dy, MatrixOrder order);
            public void TranslateTransform(float dx, float dy);
    
            public delegate bool DrawImageAbort(IntPtr callbackdata);
            public delegate bool EnumerateMetafileProc(EmfPlusRecordType recordType, int flags, int dataSize, IntPtr data, PlayRecordCallback callbackData);
        }
    }
    2、
    2.返回顶部
     
    3.返回顶部
     
    4.返回顶部
     
    5.返回顶部
     
     
    6.返回顶部
     
    warn 作者:ylbtech
    出处:http://ylbtech.cnblogs.com/
    本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
  • 相关阅读:
    前端学习之路,新手必看
    css常用的属性方法 上篇
    H5音乐播放器源码地址
    H5音乐播放器源码共享
    H5音乐播放器【歌单列表】
    (1)H5实现音乐播放器【正在播放-歌词篇】
    JS 对数组的操作集锦(基础)
    完整的淘宝页面模板
    一次上机试题(面向对象)
    python select方法的使用
  • 原文地址:https://www.cnblogs.com/storebook/p/9063213.html
Copyright © 2020-2023  润新知