C# Class Cairo.Context

Inheritance: IDisposable
Mostra file Open project: zwcloud/CairoSharp Class Usage Examples

Public Methods

Method Description
AppendPath ( Path path ) : void
Arc ( double xc, double yc, double radius, double angle1, double angle2 ) : void
ArcNegative ( double xc, double yc, double radius, double angle1, double angle2 ) : void
Clip ( ) : void
ClipPreserve ( ) : void
ClosePath ( ) : void
Context ( IntPtr handle, bool owner ) : System
Context ( Surface surface ) : System
CopyPage ( ) : void
CopyPath ( ) : Path
CopyPathFlat ( ) : Path
CurveTo ( PointD p1, PointD p2, PointD p3 ) : void
CurveTo ( double x1, double y1, double x2, double y2, double x3, double y3 ) : void
DeviceToUser ( double &x, double &y ) : void
DeviceToUserDistance ( double &dx, double &dy ) : void
Dispose ( ) : void
Fill ( ) : void
FillExtents ( ) : Rectangle
FillPreserve ( ) : void
GetContextFontFace ( ) : FontFace
GetGroupTarget ( ) : Surface
GetScaledFont ( ) : ScaledFont
GetSource ( ) : Pattern
GetTarget ( ) : Surface
GlyphExtents ( Glyph glyphs ) : TextExtents
GlyphPath ( Glyph glyphs ) : void
IdentityMatrix ( ) : void
InClip ( double x, double y ) : bool
InFill ( double x, double y ) : bool
InStroke ( double x, double y ) : bool
LineTo ( PointD p ) : void
LineTo ( double x, double y ) : void
Mask ( Pattern pattern ) : void
MaskSurface ( Surface surface, double surface_x, double surface_y ) : void
MoveTo ( PointD p ) : void
MoveTo ( double x, double y ) : void
NewPath ( ) : void
NewSubPath ( ) : void
Paint ( ) : void
PaintWithAlpha ( double alpha ) : void
PopGroup ( ) : Pattern
PopGroupToSource ( ) : void
PushGroup ( ) : void
PushGroup ( Content content ) : void
Rectangle ( PointD p, double width, double height ) : void
Rectangle ( Rectangle rectangle ) : void
Rectangle ( double x, double y, double width, double height ) : void
RelCurveTo ( Distance d1, Distance d2, Distance d3 ) : void
RelCurveTo ( double dx1, double dy1, double dx2, double dy2, double dx3, double dy3 ) : void
RelLineTo ( Distance d ) : void
RelLineTo ( double dx, double dy ) : void
RelMoveTo ( Distance d ) : void
RelMoveTo ( double dx, double dy ) : void
ResetClip ( ) : void
Restore ( ) : void
Rotate ( double angle ) : void
Save ( ) : void
Scale ( double sx, double sy ) : void
SelectFontFace ( string family, FontSlant slant, FontWeight weight ) : void
SetContextFontFace ( FontFace value ) : void
SetDash ( double dashes, double offset ) : void
SetFontSize ( double scale ) : void
SetScaledFont ( ScaledFont font ) : void
SetSource ( Pattern source ) : void
SetSource ( Surface source ) : void
SetSource ( Surface source, double x, double y ) : void
SetSourceColor ( Color color ) : void
SetSourceRGB ( double r, double g, double b ) : void
SetSourceRGBA ( double r, double g, double b, double a ) : void
SetTarget ( Surface target ) : void
ShowGlyphs ( Glyph glyphs ) : void
ShowPage ( ) : void
ShowText ( byte utf8 ) : void
ShowText ( string str ) : void
Stroke ( ) : void
StrokeExtents ( ) : Rectangle
StrokePreserve ( ) : void
TextExtents ( byte utf8 ) : TextExtents
TextExtents ( string s ) : TextExtents
TextPath ( byte utf8 ) : void
TextPath ( string str ) : void
Transform ( Matrix m ) : void
Translate ( double tx, double ty ) : void
UserToDevice ( double &x, double &y ) : void
UserToDeviceDistance ( double &dx, double &dy ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
CheckDisposed ( ) : void
Context ( ) : System
FromGlyphToUnManagedMemory ( Glyph glyphs ) : IntPtr
TerminateUtf8 ( byte utf8 ) : byte[]
TerminateUtf8 ( string s ) : byte[]

Method Details

AppendPath() public method

public AppendPath ( Path path ) : void
path Path
return void

Arc() public method

public Arc ( double xc, double yc, double radius, double angle1, double angle2 ) : void
xc double
yc double
radius double
angle1 double
angle2 double
return void

ArcNegative() public method

public ArcNegative ( double xc, double yc, double radius, double angle1, double angle2 ) : void
xc double
yc double
radius double
angle1 double
angle2 double
return void

Clip() public method

public Clip ( ) : void
return void

ClipPreserve() public method

public ClipPreserve ( ) : void
return void

ClosePath() public method

public ClosePath ( ) : void
return void

Context() public method

public Context ( IntPtr handle, bool owner ) : System
handle System.IntPtr
owner bool
return System

Context() public method

public Context ( Surface surface ) : System
surface Surface
return System

CopyPage() public method

public CopyPage ( ) : void
return void

CopyPath() public method

public CopyPath ( ) : Path
return Path

CopyPathFlat() public method

public CopyPathFlat ( ) : Path
return Path

CurveTo() public method

public CurveTo ( PointD p1, PointD p2, PointD p3 ) : void
p1 PointD
p2 PointD
p3 PointD
return void

CurveTo() public method

public CurveTo ( double x1, double y1, double x2, double y2, double x3, double y3 ) : void
x1 double
y1 double
x2 double
y2 double
x3 double
y3 double
return void

DeviceToUser() public method

public DeviceToUser ( double &x, double &y ) : void
x double
y double
return void

DeviceToUserDistance() public method

public DeviceToUserDistance ( double &dx, double &dy ) : void
dx double
dy double
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Fill() public method

public Fill ( ) : void
return void

FillExtents() public method

public FillExtents ( ) : Rectangle
return Rectangle

FillPreserve() public method

public FillPreserve ( ) : void
return void

GetContextFontFace() public method

public GetContextFontFace ( ) : FontFace
return FontFace

GetGroupTarget() public method

public GetGroupTarget ( ) : Surface
return Surface

GetScaledFont() public method

public GetScaledFont ( ) : ScaledFont
return ScaledFont

GetSource() public method

public GetSource ( ) : Pattern
return Pattern

GetTarget() public method

public GetTarget ( ) : Surface
return Surface

GlyphExtents() public method

public GlyphExtents ( Glyph glyphs ) : TextExtents
glyphs Glyph
return TextExtents

GlyphPath() public method

public GlyphPath ( Glyph glyphs ) : void
glyphs Glyph
return void

IdentityMatrix() public method

public IdentityMatrix ( ) : void
return void

InClip() public method

public InClip ( double x, double y ) : bool
x double
y double
return bool

InFill() public method

public InFill ( double x, double y ) : bool
x double
y double
return bool

InStroke() public method

public InStroke ( double x, double y ) : bool
x double
y double
return bool

LineTo() public method

public LineTo ( PointD p ) : void
p PointD
return void

LineTo() public method

public LineTo ( double x, double y ) : void
x double
y double
return void

Mask() public method

public Mask ( Pattern pattern ) : void
pattern Pattern
return void

MaskSurface() public method

public MaskSurface ( Surface surface, double surface_x, double surface_y ) : void
surface Surface
surface_x double
surface_y double
return void

MoveTo() public method

public MoveTo ( PointD p ) : void
p PointD
return void

MoveTo() public method

public MoveTo ( double x, double y ) : void
x double
y double
return void

NewPath() public method

public NewPath ( ) : void
return void

NewSubPath() public method

public NewSubPath ( ) : void
return void

Paint() public method

public Paint ( ) : void
return void

PaintWithAlpha() public method

public PaintWithAlpha ( double alpha ) : void
alpha double
return void

PopGroup() public method

public PopGroup ( ) : Pattern
return Pattern

PopGroupToSource() public method

public PopGroupToSource ( ) : void
return void

PushGroup() public method

public PushGroup ( ) : void
return void

PushGroup() public method

public PushGroup ( Content content ) : void
content Content
return void

Rectangle() public method

public Rectangle ( PointD p, double width, double height ) : void
p PointD
width double
height double
return void

Rectangle() public method

public Rectangle ( Rectangle rectangle ) : void
rectangle Rectangle
return void

Rectangle() public method

public Rectangle ( double x, double y, double width, double height ) : void
x double
y double
width double
height double
return void

RelCurveTo() public method

public RelCurveTo ( Distance d1, Distance d2, Distance d3 ) : void
d1 Distance
d2 Distance
d3 Distance
return void

RelCurveTo() public method

public RelCurveTo ( double dx1, double dy1, double dx2, double dy2, double dx3, double dy3 ) : void
dx1 double
dy1 double
dx2 double
dy2 double
dx3 double
dy3 double
return void

RelLineTo() public method

public RelLineTo ( Distance d ) : void
d Distance
return void

RelLineTo() public method

public RelLineTo ( double dx, double dy ) : void
dx double
dy double
return void

RelMoveTo() public method

public RelMoveTo ( Distance d ) : void
d Distance
return void

RelMoveTo() public method

public RelMoveTo ( double dx, double dy ) : void
dx double
dy double
return void

ResetClip() public method

public ResetClip ( ) : void
return void

Restore() public method

public Restore ( ) : void
return void

Rotate() public method

public Rotate ( double angle ) : void
angle double
return void

Save() public method

public Save ( ) : void
return void

Scale() public method

public Scale ( double sx, double sy ) : void
sx double
sy double
return void

SelectFontFace() public method

public SelectFontFace ( string family, FontSlant slant, FontWeight weight ) : void
family string
slant FontSlant
weight FontWeight
return void

SetContextFontFace() public method

public SetContextFontFace ( FontFace value ) : void
value FontFace
return void

SetDash() public method

public SetDash ( double dashes, double offset ) : void
dashes double
offset double
return void

SetFontSize() public method

public SetFontSize ( double scale ) : void
scale double
return void

SetScaledFont() public method

public SetScaledFont ( ScaledFont font ) : void
font ScaledFont
return void

SetSource() public method

public SetSource ( Pattern source ) : void
source Pattern
return void

SetSource() public method

public SetSource ( Surface source ) : void
source Surface
return void

SetSource() public method

public SetSource ( Surface source, double x, double y ) : void
source Surface
x double
y double
return void

SetSourceColor() public method

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

SetSourceRGB() public method

public SetSourceRGB ( double r, double g, double b ) : void
r double
g double
b double
return void

SetSourceRGBA() public method

public SetSourceRGBA ( double r, double g, double b, double a ) : void
r double
g double
b double
a double
return void

SetTarget() public method

public SetTarget ( Surface target ) : void
target Surface
return void

ShowGlyphs() public method

public ShowGlyphs ( Glyph glyphs ) : void
glyphs Glyph
return void

ShowPage() public method

public ShowPage ( ) : void
return void

ShowText() public method

public ShowText ( byte utf8 ) : void
utf8 byte
return void

ShowText() public method

public ShowText ( string str ) : void
str string
return void

Stroke() public method

public Stroke ( ) : void
return void

StrokeExtents() public method

public StrokeExtents ( ) : Rectangle
return Rectangle

StrokePreserve() public method

public StrokePreserve ( ) : void
return void

TextExtents() public method

public TextExtents ( byte utf8 ) : TextExtents
utf8 byte
return TextExtents

TextExtents() public method

public TextExtents ( string s ) : TextExtents
s string
return TextExtents

TextPath() public method

public TextPath ( byte utf8 ) : void
utf8 byte
return void

TextPath() public method

public TextPath ( string str ) : void
str string
return void

Transform() public method

public Transform ( Matrix m ) : void
m Matrix
return void

Translate() public method

public Translate ( double tx, double ty ) : void
tx double
ty double
return void

UserToDevice() public method

public UserToDevice ( double &x, double &y ) : void
x double
y double
return void

UserToDeviceDistance() public method

public UserToDeviceDistance ( double &dx, double &dy ) : void
dx double
dy double
return void