Class Surface
- Namespace
- Cairo
- Assembly
- cairo-1.0.dll
public class Surface : BoxedRecord
- Inheritance
-
Surface
- Implements
-
- Derived
-
- Inherited Members
-
Constructors
Surface(SurfaceOwnedHandle)
public Surface(SurfaceOwnedHandle handle)
Parameters
handle
SurfaceOwnedHandle
Properties
Content
public Content Content { get; }
Property Value
- Content
Device
public Device? Device { get; }
Property Value
- Device
DeviceOffset
public (double X, double Y) DeviceOffset { get; set; }
Property Value
- (double X, double Y)
DeviceScale
public (double X, double Y) DeviceScale { get; set; }
Property Value
- (double X, double Y)
FallbackResolution
public (double X, double Y) FallbackResolution { get; set; }
Property Value
- (double X, double Y)
Handle
public SurfaceOwnedHandle Handle { get; }
Property Value
- SurfaceOwnedHandle
Status
public Status Status { get; }
Property Value
- Status
SurfaceType
public SurfaceType SurfaceType { get; }
Property Value
- SurfaceType
Methods
CreateForRectangle(double, double, double, double)
public Surface CreateForRectangle(double x, double y, double width, double height)
Parameters
x
double
y
double
width
double
height
double
Returns
- Surface
CreateSimilar(Content, int, int)
public Surface CreateSimilar(Content content, int width, int height)
Parameters
content
Content
width
int
height
int
Returns
- Surface
public Surface CreateSimilarImage(Format format, int width, int height)
Parameters
format
Format
width
int
height
int
Returns
- Surface
Finish()
Flush()
GetFontOptions(FontOptions)
public void GetFontOptions(FontOptions options)
Parameters
options
FontOptions
GetGType()
public static Type GetGType()
Returns
- Type
MarkDirty()
MarkDirty(int, int, int, int)
public void MarkDirty(int x, int y, int width, int height)
Parameters
x
int
y
int
width
int
height
int