Graphics

Graphics class

public class Graphics : IDisposable

特性

姓名 描述
Clip { get; set; }
ClipBounds { get; }
CompositingMode { get; set; }
CompositingQuality { get; set; }
DpiX { get; }
DpiY { get; }
InterpolationMode { get; set; }
IsClipEmpty { get; }
IsVisibleClipEmpty { get; }
PageScale { get; set; }
PageUnit { get; set; }
PixelOffsetMode { get; set; }
RenderingOrigin { get; set; }
SmoothingMode { get; set; }
TextContrast { get; set; }
TextRenderingHint { get; set; }
Transform { get; set; }
VisibleClipBounds { get; }

方法

姓名 描述
static FromHwnd(IntPtr)
static FromImage(Image)
AddMetafileComment(byte[])
BeginContainer()
BeginContainer(Rectangle, Rectangle, GraphicsUnit)
BeginContainer(RectangleF, RectangleF, GraphicsUnit)
Clear(Color)
CopyFromScreen(Point, Point, Size)
CopyFromScreen(Point, Point, Size, CopyPixelOperation)
CopyFromScreen(int, int, int, int, Size, CopyPixelOperation)
Dispose()
DrawArc(Pen, RectangleF, float, float)
DrawArc(Pen, float, float, float, float, float, float)
DrawBezier(Pen, PointF, PointF, PointF, PointF)
DrawBezier(Pen, float, float, float, float, float, float, float, float)
DrawBeziers(Pen, PointF[])
DrawBeziers(Pen, Point[])
DrawClosedCurve(Pen, PointF[])
DrawClosedCurve(Pen, Point[])
DrawClosedCurve(Pen, PointF[], float, FillMode)
DrawClosedCurve(Pen, Point[], float, FillMode)
DrawCurve(Pen, PointF[])
DrawCurve(Pen, Point[])
DrawCurve(Pen, PointF[], float)
DrawCurve(Pen, Point[], float)
DrawCurve(Pen, PointF[], int, int)
DrawCurve(Pen, PointF[], int, int, float)
DrawCurve(Pen, Point[], int, int, float)
DrawEllipse(Pen, RectangleF)
DrawEllipse(Pen, float, float, float, float)
DrawIcon(Icon, Rectangle)
DrawIcon(Icon, int, int)
DrawIconUnstretched(Icon, Rectangle)
DrawImage(Image, Point)
DrawImage(Image, PointF)
DrawImage(Image, PointF[])
DrawImage(Image, Point[])
DrawImage(Image, Rectangle)
DrawImage(Image, RectangleF)
DrawImage(Image, float, float)
DrawImage(Image, int, int)
DrawImage(Image, PointF[], RectangleF, GraphicsUnit)
DrawImage(Image, Point[], Rectangle, GraphicsUnit)
DrawImage(Image, Rectangle, Rectangle, GraphicsUnit)
DrawImage(Image, RectangleF, RectangleF, GraphicsUnit)
DrawImage(Image, float, float, float, float)
DrawImage(Image, float, float, RectangleF, GraphicsUnit)
DrawImage(Image, int, int, int, int)
DrawImage(Image, int, int, Rectangle, GraphicsUnit)
DrawImage(Image, PointF[], RectangleF, GraphicsUnit, ImageAttributes)
DrawImage(Image, Point[], Rectangle, GraphicsUnit, ImageAttributes)
DrawImage(Image, Rectangle, float, float, float, float, GraphicsUnit)
DrawImage(Image, Rectangle, int, int, int, int, GraphicsUnit)
DrawImage(Image, Rectangle, float, float, float, float, GraphicsUnit, ImageAttributes)
DrawImage(Image, Rectangle, int, int, int, int, GraphicsUnit, ImageAttributes)
DrawImageUnscaled(Image, Point)
DrawImageUnscaled(Image, Rectangle)
DrawImageUnscaled(Image, int, int)
DrawImageUnscaled(Image, int, int, int, int)
DrawImageUnscaledAndClipped(Image, Rectangle)
DrawLine(Pen, Point, Point)
DrawLine(Pen, PointF, PointF)
DrawLine(Pen, float, float, float, float)
DrawLine(Pen, int, int, int, int)
DrawLines(Pen, PointF[])
DrawLines(Pen, Point[])
DrawPath(Pen, GraphicsPath)
DrawPie(Pen, RectangleF, float, float)
DrawPie(Pen, float, float, float, float, float, float)
DrawPolygon(Pen, PointF[])
DrawPolygon(Pen, Point[])
DrawRectangle(Pen, Rectangle)
DrawRectangle(Pen, float, float, float, float)
DrawRectangle(Pen, int, int, int, int)
DrawRectangles(Pen, RectangleF[])
DrawRectangles(Pen, Rectangle[])
DrawString(string, Font, Brush, PointF)
DrawString(string, Font, Brush, RectangleF)
DrawString(string, Font, Brush, float, float)
DrawString(string, Font, Brush, PointF, StringFormat)
DrawString(string, Font, Brush, RectangleF, StringFormat)
DrawString(string, Font, Brush, float, float, StringFormat)
EndContainer(GraphicsContainer)
EnumerateMetafile(Metafile, Point, EnumerateMetafileProc)
EnumerateMetafile(Metafile, PointF, EnumerateMetafileProc)
EnumerateMetafile(Metafile, PointF[], EnumerateMetafileProc)
EnumerateMetafile(Metafile, Point[], EnumerateMetafileProc)
EnumerateMetafile(Metafile, Rectangle, EnumerateMetafileProc)
EnumerateMetafile(Metafile, RectangleF, EnumerateMetafileProc)
EnumerateMetafile(Metafile, Point, EnumerateMetafileProc, IntPtr)
EnumerateMetafile(Metafile, PointF, EnumerateMetafileProc, IntPtr)
EnumerateMetafile(Metafile, PointF[], EnumerateMetafileProc, IntPtr)
EnumerateMetafile(Metafile, Point[], EnumerateMetafileProc, IntPtr)
EnumerateMetafile(Metafile, Rectangle, EnumerateMetafileProc, IntPtr)
EnumerateMetafile(Metafile, RectangleF, EnumerateMetafileProc, IntPtr)
EnumerateMetafile(Metafile, Point, EnumerateMetafileProc, IntPtr, ImageAttributes)
EnumerateMetafile(Metafile, Point, Rectangle, GraphicsUnit, EnumerateMetafileProc)
EnumerateMetafile(Metafile, PointF, EnumerateMetafileProc, IntPtr, ImageAttributes)
EnumerateMetafile(Metafile, PointF, RectangleF, GraphicsUnit, EnumerateMetafileProc)
EnumerateMetafile(Metafile, PointF[], EnumerateMetafileProc, IntPtr, ImageAttributes)
EnumerateMetafile(Metafile, PointF[], RectangleF, GraphicsUnit, EnumerateMetafileProc)
EnumerateMetafile(Metafile, Point[], EnumerateMetafileProc, IntPtr, ImageAttributes)
EnumerateMetafile(Metafile, Point[], Rectangle, GraphicsUnit, EnumerateMetafileProc)
EnumerateMetafile(Metafile, Rectangle, EnumerateMetafileProc, IntPtr, ImageAttributes)
EnumerateMetafile(Metafile, Rectangle, Rectangle, GraphicsUnit, EnumerateMetafileProc)
EnumerateMetafile(Metafile, RectangleF, EnumerateMetafileProc, IntPtr, ImageAttributes)
EnumerateMetafile(Metafile, RectangleF, RectangleF, GraphicsUnit, EnumerateMetafileProc)
EnumerateMetafile(Metafile, Point, Rectangle, GraphicsUnit, EnumerateMetafileProc, IntPtr)
EnumerateMetafile(Metafile, PointF, RectangleF, GraphicsUnit, EnumerateMetafileProc, IntPtr)
EnumerateMetafile(Metafile, PointF[], RectangleF, GraphicsUnit, EnumerateMetafileProc, IntPtr)
EnumerateMetafile(Metafile, Point[], Rectangle, GraphicsUnit, EnumerateMetafileProc, IntPtr)
EnumerateMetafile(Metafile, Rectangle, Rectangle, GraphicsUnit, EnumerateMetafileProc, IntPtr)
EnumerateMetafile(Metafile, RectangleF, RectangleF, GraphicsUnit, EnumerateMetafileProc, IntPtr)
EnumerateMetafile(Metafile, Point, Rectangle, GraphicsUnit, EnumerateMetafileProc, IntPtr, ImageAttributes)
EnumerateMetafile(Metafile, PointF, RectangleF, GraphicsUnit, EnumerateMetafileProc, IntPtr, ImageAttributes)
EnumerateMetafile(Metafile, PointF[], RectangleF, GraphicsUnit, EnumerateMetafileProc, IntPtr, ImageAttributes)
EnumerateMetafile(Metafile, Point[], Rectangle, GraphicsUnit, EnumerateMetafileProc, IntPtr, ImageAttributes)
EnumerateMetafile(Metafile, Rectangle, Rectangle, GraphicsUnit, EnumerateMetafileProc, IntPtr, ImageAttributes)
EnumerateMetafile(Metafile, RectangleF, RectangleF, GraphicsUnit, EnumerateMetafileProc, IntPtr, ImageAttributes)
ExcludeClip(Rectangle)
ExcludeClip(Region)
FillClosedCurve(Brush, PointF[])
FillClosedCurve(Brush, Point[])
FillClosedCurve(Brush, PointF[], FillMode)
FillClosedCurve(Brush, Point[], FillMode)
FillClosedCurve(Brush, PointF[], FillMode, float)
FillClosedCurve(Brush, Point[], FillMode, float)
FillEllipse(Brush, RectangleF)
FillEllipse(Brush, float, float, float, float)
FillPath(Brush, GraphicsPath)
FillPie(Brush, Rectangle, float, float)
FillPie(Brush, float, float, float, float, float, float)
FillPie(Brush, int, int, int, int, int, int)
FillPolygon(Brush, PointF[])
FillPolygon(Brush, Point[])
FillPolygon(Brush, PointF[], FillMode)
FillPolygon(Brush, Point[], FillMode)
FillRectangle(Brush, RectangleF)
FillRectangle(Brush, float, float, float, float)
FillRectangles(Brush, RectangleF[])
FillRectangles(Brush, Rectangle[])
FillRegion(Brush, Region)
Flush()
Flush(FlushIntention)
GetHdc()
GetNearestColor(Color)
IntersectClip(Rectangle)
IntersectClip(RectangleF)
IntersectClip(Region)
IsVisible(Point)
IsVisible(PointF)
IsVisible(Rectangle)
IsVisible(RectangleF)
IsVisible(float, float)
IsVisible(int, int)
IsVisible(float, float, float, float)
IsVisible(int, int, int, int)
MeasureCharacterRanges(string, Font, RectangleF, StringFormat)
MeasureString(string, Font)
MeasureString(string, Font, int)
MeasureString(string, Font, SizeF)
MeasureString(string, Font, int, StringFormat)
MeasureString(string, Font, PointF, StringFormat)
MeasureString(string, Font, SizeF, StringFormat)
MeasureString(string, Font, SizeF, StringFormat, out int, out int)
MultiplyTransform(Matrix)
MultiplyTransform(Matrix, MatrixOrder)
ReleaseHdc()
ReleaseHdc(IntPtr)
ResetClip()
ResetTransform()
Restore(GraphicsState)
RotateTransform(float)
RotateTransform(float, MatrixOrder)
Save()
ScaleTransform(float, float)
ScaleTransform(float, float, MatrixOrder)
SetClip(Graphics)
SetClip(GraphicsPath)
SetClip(Rectangle)
SetClip(RectangleF)
SetClip(Graphics, CombineMode)
SetClip(GraphicsPath, CombineMode)
SetClip(Rectangle, CombineMode)
SetClip(RectangleF, CombineMode)
SetClip(Region, CombineMode)
TransformPoints(CoordinateSpace, CoordinateSpace, PointF[])
TransformPoints(CoordinateSpace, CoordinateSpace, Point[])
TranslateClip(float, float)
TranslateClip(int, int)
TranslateTransform(float, float)
TranslateTransform(float, float, MatrixOrder)

其他成员

姓名 描述
delegate DrawImageAbort
delegate EnumerateMetafileProc

也可以看看