C# Class SharpVectors.Renderer.Gdi.GraphicsWrapper

Wraps a Graphics object since it's sealed
Inheritance: IDisposable
显示文件 Open project: codebutler/savagesvg Class Usage Examples

Public Methods

Method Description
BeginContainer ( ) : GraphicsContainerWrapper
Clear ( Color color ) : void
Dispose ( ) : void
DrawImage ( GraphicsNode grNode, Image image, Rectangle destRect, float srcX, float srcY, float srcWidth, float srcHeight, GraphicsUnit graphicsUnit, ImageAttributes imageAttributes ) : void
DrawPath ( GraphicsNode grNode, Pen pen, GraphicsPath path ) : void
EndContainer ( GraphicsContainerWrapper container ) : void
FillPath ( GraphicsNode grNode, Brush brush, GraphicsPath path ) : void
FromHdc ( IntPtr hdc, bool isStatic ) : GraphicsWrapper
FromImage ( Image image, bool isStatic ) : GraphicsWrapper
ResetClip ( ) : void
RotateTransform ( float angle ) : void
ScaleTransform ( float sx, float sy ) : void
SetClip ( GraphicsPath path ) : void
SetClip ( RectangleF rect ) : void
SetClip ( Region region, CombineMode combineMode ) : void
TranslateClip ( float x, float y ) : void
TranslateTransform ( float dx, float dy ) : void

Private Methods

Method Description
GraphicsWrapper ( Image image, bool isStatic ) : System
GraphicsWrapper ( IntPtr hdc, bool isStatic ) : System

Method Details

BeginContainer() public method

public BeginContainer ( ) : GraphicsContainerWrapper
return GraphicsContainerWrapper

Clear() public method

public Clear ( Color color ) : void
color Color
return void

Dispose() public method

public Dispose ( ) : void
return void

DrawImage() public method

public DrawImage ( GraphicsNode grNode, Image image, Rectangle destRect, float srcX, float srcY, float srcWidth, float srcHeight, GraphicsUnit graphicsUnit, ImageAttributes imageAttributes ) : void
grNode GraphicsNode
image Image
destRect System.Drawing.Rectangle
srcX float
srcY float
srcWidth float
srcHeight float
graphicsUnit GraphicsUnit
imageAttributes System.Drawing.Imaging.ImageAttributes
return void

DrawPath() public method

public DrawPath ( GraphicsNode grNode, Pen pen, GraphicsPath path ) : void
grNode GraphicsNode
pen System.Drawing.Pen
path System.Drawing.Drawing2D.GraphicsPath
return void

EndContainer() public method

public EndContainer ( GraphicsContainerWrapper container ) : void
container GraphicsContainerWrapper
return void

FillPath() public method

public FillPath ( GraphicsNode grNode, Brush brush, GraphicsPath path ) : void
grNode GraphicsNode
brush System.Drawing.Brush
path System.Drawing.Drawing2D.GraphicsPath
return void

FromHdc() public static method

public static FromHdc ( IntPtr hdc, bool isStatic ) : GraphicsWrapper
hdc System.IntPtr
isStatic bool
return GraphicsWrapper

FromImage() public static method

public static FromImage ( Image image, bool isStatic ) : GraphicsWrapper
image Image
isStatic bool
return GraphicsWrapper

ResetClip() public method

public ResetClip ( ) : void
return void

RotateTransform() public method

public RotateTransform ( float angle ) : void
angle float
return void

ScaleTransform() public method

public ScaleTransform ( float sx, float sy ) : void
sx float
sy float
return void

SetClip() public method

public SetClip ( GraphicsPath path ) : void
path System.Drawing.Drawing2D.GraphicsPath
return void

SetClip() public method

public SetClip ( RectangleF rect ) : void
rect System.Drawing.RectangleF
return void

SetClip() public method

public SetClip ( Region region, CombineMode combineMode ) : void
region System.Drawing.Region
combineMode CombineMode
return void

TranslateClip() public method

public TranslateClip ( float x, float y ) : void
x float
y float
return void

TranslateTransform() public method

public TranslateTransform ( float dx, float dy ) : void
dx float
dy float
return void