C# Класс Pinta.Core.CairoExtensions

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Clamp ( this r ) : Rectangle
Clone ( this surf ) : ImageSurface
Clone ( this path ) : Path
ContainsCorrect ( this r, Gdk pt ) : bool

There was a bug in gdk-sharp where this returns incorrect values. We will probably have to use this for a long time until every distro has an updated gdk.

ContainsCorrect ( this r, int x, int y ) : bool

There was a bug in gdk-sharp where this returns incorrect values. We will probably have to use this for a long time until every distro has an updated gdk.

ContainsPoint ( this r, double x, double y ) : bool
CreateEllipsePath ( this g, Rectangle r ) : Path
CreateRectanglePath ( this g, Rectangle r ) : Path
CreateRoundedRectanglePath ( this g, Rectangle r, double radius ) : Path
DrawEllipse ( this g, Rectangle r, Color color, int lineWidth ) : Rectangle
DrawLine ( this g, PointD p1, PointD p2, Color color, int lineWidth ) : Rectangle
DrawPixbuf ( this g, Gdk pixbuf, Point dest ) : void
DrawPolygonal ( this g, PointD points, Color color ) : Rectangle
DrawRectangle ( this g, Rectangle r, Color color, int lineWidth ) : Rectangle
DrawRoundedRectangle ( this g, Rectangle r, double radius, Color stroke, int lineWidth ) : Rectangle
DrawText ( this g, PointD p, string family, FontSlant slant, FontWeight weight, double size, Color color, string text ) : Rectangle
FillEllipse ( this g, Rectangle r, Color color ) : Rectangle
FillPolygonal ( this g, PointD points, Color color ) : Rectangle
FillRectangle ( this g, Rectangle r, Color color ) : Rectangle
FillRectangle ( this g, Rectangle r, Pattern pattern ) : Rectangle
FillRegion ( this g, Gdk region, Color color ) : void
FillRoundedRectangle ( this g, Rectangle r, double radius, Color fill ) : Rectangle
FillStrokedEllipse ( this g, Rectangle r, Color fill, Color stroke, int lineWidth ) : Rectangle
FillStrokedRectangle ( this g, Rectangle r, Color fill, Color stroke, int lineWidth ) : Rectangle
FillStrokedRoundedRectangle ( this g, Rectangle r, double radius, Color fill, Color stroke, int lineWidth ) : Rectangle
GdkColorAlpha ( this color ) : ushort
GetBilinearSample ( this src, ColorBgra srcDataPtr, int srcWidth, int srcHeight, float x, float y ) : ColorBgra
GetBilinearSample ( this src, float x, float y ) : ColorBgra
GetBottom ( this rect ) : double
GetBounds ( this path ) : Gdk.Rectangle
GetColorBgra ( this surf, ColorBgra surfDataPtr, int surfWidth, int x, int y ) : ColorBgra
GetColorBgra ( this surf, int x, int y ) : ColorBgra
GetPixel ( this surf, int x, int y ) : Color
GetPointAddress ( this surf, Gdk point ) : ColorBgra*
GetPointAddress ( this surf, int x, int y ) : ColorBgra*
GetPointAddressUnchecked ( this surf, ColorBgra surfDataPtr, int surfWidth, int x, int y ) : ColorBgra*
GetPointAddressUnchecked ( this surf, int x, int y ) : ColorBgra*
GetPointUnchecked ( this surf, ColorBgra surfDataPtr, int surfWidth, int x, int y ) : ColorBgra
GetPointUnchecked ( this surf, int x, int y ) : ColorBgra
GetRight ( this rect ) : double
GetRowAddressUnchecked ( this surf, ColorBgra surfDataPtr, int surfWidth, int y ) : ColorBgra*
GetRowAddressUnchecked ( this surf, int y ) : ColorBgra*
GetSize ( this surf ) : Gdk.Size
Location ( this r ) : Point
SetPixel ( this surf, ColorBgra surfDataPtr, int surfWidth, int x, int y, Color color ) : void
SetPixel ( this surf, int x, int y, Color color ) : void
ToCairoColor ( this color ) : Color
ToCairoRectangle ( this r ) : Rectangle
ToColorBgra ( this color ) : ColorBgra
ToGdkColor ( this color ) : Gdk.Color
ToGdkRectangle ( this r ) : Gdk.Rectangle
ToPixbuf ( this surf ) : Gdk.Pixbuf
ToString2 ( this c ) : string
ToUint ( this c ) : uint

Описание методов

Clamp() публичный статический Метод

public static Clamp ( this r ) : Rectangle
r this
Результат Cairo.Rectangle

Clone() публичный статический Метод

public static Clone ( this surf ) : ImageSurface
surf this
Результат Cairo.ImageSurface

Clone() публичный статический Метод

public static Clone ( this path ) : Path
path this
Результат Cairo.Path

ContainsCorrect() публичный статический Метод

There was a bug in gdk-sharp where this returns incorrect values. We will probably have to use this for a long time until every distro has an updated gdk.
public static ContainsCorrect ( this r, Gdk pt ) : bool
r this
pt Gdk
Результат bool

ContainsCorrect() публичный статический Метод

There was a bug in gdk-sharp where this returns incorrect values. We will probably have to use this for a long time until every distro has an updated gdk.
public static ContainsCorrect ( this r, int x, int y ) : bool
r this
x int
y int
Результат bool

ContainsPoint() публичный статический Метод

public static ContainsPoint ( this r, double x, double y ) : bool
r this
x double
y double
Результат bool

CreateEllipsePath() публичный статический Метод

public static CreateEllipsePath ( this g, Rectangle r ) : Path
g this
r Cairo.Rectangle
Результат Cairo.Path

CreateRectanglePath() публичный статический Метод

public static CreateRectanglePath ( this g, Rectangle r ) : Path
g this
r Cairo.Rectangle
Результат Cairo.Path

CreateRoundedRectanglePath() публичный статический Метод

public static CreateRoundedRectanglePath ( this g, Rectangle r, double radius ) : Path
g this
r Cairo.Rectangle
radius double
Результат Cairo.Path

DrawEllipse() публичный статический Метод

public static DrawEllipse ( this g, Rectangle r, Color color, int lineWidth ) : Rectangle
g this
r Cairo.Rectangle
color Color
lineWidth int
Результат Cairo.Rectangle

DrawLine() публичный статический Метод

public static DrawLine ( this g, PointD p1, PointD p2, Color color, int lineWidth ) : Rectangle
g this
p1 Cairo.PointD
p2 Cairo.PointD
color Color
lineWidth int
Результат Cairo.Rectangle

DrawPixbuf() публичный статический Метод

public static DrawPixbuf ( this g, Gdk pixbuf, Point dest ) : void
g this
pixbuf Gdk
dest Point
Результат void

DrawPolygonal() публичный статический Метод

public static DrawPolygonal ( this g, PointD points, Color color ) : Rectangle
g this
points Cairo.PointD
color Color
Результат Cairo.Rectangle

DrawRectangle() публичный статический Метод

public static DrawRectangle ( this g, Rectangle r, Color color, int lineWidth ) : Rectangle
g this
r Cairo.Rectangle
color Color
lineWidth int
Результат Cairo.Rectangle

DrawRoundedRectangle() публичный статический Метод

public static DrawRoundedRectangle ( this g, Rectangle r, double radius, Color stroke, int lineWidth ) : Rectangle
g this
r Cairo.Rectangle
radius double
stroke Color
lineWidth int
Результат Cairo.Rectangle

DrawText() публичный статический Метод

public static DrawText ( this g, PointD p, string family, FontSlant slant, FontWeight weight, double size, Color color, string text ) : Rectangle
g this
p Cairo.PointD
family string
slant FontSlant
weight FontWeight
size double
color Color
text string
Результат Cairo.Rectangle

FillEllipse() публичный статический Метод

public static FillEllipse ( this g, Rectangle r, Color color ) : Rectangle
g this
r Cairo.Rectangle
color Color
Результат Cairo.Rectangle

FillPolygonal() публичный статический Метод

public static FillPolygonal ( this g, PointD points, Color color ) : Rectangle
g this
points Cairo.PointD
color Color
Результат Cairo.Rectangle

FillRectangle() публичный статический Метод

public static FillRectangle ( this g, Rectangle r, Color color ) : Rectangle
g this
r Cairo.Rectangle
color Color
Результат Cairo.Rectangle

FillRectangle() публичный статический Метод

public static FillRectangle ( this g, Rectangle r, Pattern pattern ) : Rectangle
g this
r Cairo.Rectangle
pattern Cairo.Pattern
Результат Cairo.Rectangle

FillRegion() публичный статический Метод

public static FillRegion ( this g, Gdk region, Color color ) : void
g this
region Gdk
color Color
Результат void

FillRoundedRectangle() публичный статический Метод

public static FillRoundedRectangle ( this g, Rectangle r, double radius, Color fill ) : Rectangle
g this
r Cairo.Rectangle
radius double
fill Color
Результат Cairo.Rectangle

FillStrokedEllipse() публичный статический Метод

public static FillStrokedEllipse ( this g, Rectangle r, Color fill, Color stroke, int lineWidth ) : Rectangle
g this
r Cairo.Rectangle
fill Color
stroke Color
lineWidth int
Результат Cairo.Rectangle

FillStrokedRectangle() публичный статический Метод

public static FillStrokedRectangle ( this g, Rectangle r, Color fill, Color stroke, int lineWidth ) : Rectangle
g this
r Cairo.Rectangle
fill Color
stroke Color
lineWidth int
Результат Cairo.Rectangle

FillStrokedRoundedRectangle() публичный статический Метод

public static FillStrokedRoundedRectangle ( this g, Rectangle r, double radius, Color fill, Color stroke, int lineWidth ) : Rectangle
g this
r Cairo.Rectangle
radius double
fill Color
stroke Color
lineWidth int
Результат Cairo.Rectangle

GdkColorAlpha() публичный статический Метод

public static GdkColorAlpha ( this color ) : ushort
color this
Результат ushort

GetBilinearSample() публичный статический Метод

public static GetBilinearSample ( this src, ColorBgra srcDataPtr, int srcWidth, int srcHeight, float x, float y ) : ColorBgra
src this
srcDataPtr ColorBgra
srcWidth int
srcHeight int
x float
y float
Результат ColorBgra

GetBilinearSample() публичный статический Метод

public static GetBilinearSample ( this src, float x, float y ) : ColorBgra
src this
x float
y float
Результат ColorBgra

GetBottom() публичный статический Метод

public static GetBottom ( this rect ) : double
rect this
Результат double

GetBounds() публичный статический Метод

public static GetBounds ( this path ) : Gdk.Rectangle
path this
Результат Gdk.Rectangle

GetColorBgra() публичный статический Метод

public static GetColorBgra ( this surf, ColorBgra surfDataPtr, int surfWidth, int x, int y ) : ColorBgra
surf this
surfDataPtr ColorBgra
surfWidth int
x int
y int
Результат ColorBgra

GetColorBgra() публичный статический Метод

public static GetColorBgra ( this surf, int x, int y ) : ColorBgra
surf this
x int
y int
Результат ColorBgra

GetPixel() публичный статический Метод

public static GetPixel ( this surf, int x, int y ) : Color
surf this
x int
y int
Результат Color

GetPointAddress() публичный статический Метод

public static GetPointAddress ( this surf, Gdk point ) : ColorBgra*
surf this
point Gdk
Результат ColorBgra*

GetPointAddress() публичный статический Метод

public static GetPointAddress ( this surf, int x, int y ) : ColorBgra*
surf this
x int
y int
Результат ColorBgra*

GetPointAddressUnchecked() публичный статический Метод

public static GetPointAddressUnchecked ( this surf, ColorBgra surfDataPtr, int surfWidth, int x, int y ) : ColorBgra*
surf this
surfDataPtr ColorBgra
surfWidth int
x int
y int
Результат ColorBgra*

GetPointAddressUnchecked() публичный статический Метод

public static GetPointAddressUnchecked ( this surf, int x, int y ) : ColorBgra*
surf this
x int
y int
Результат ColorBgra*

GetPointUnchecked() публичный статический Метод

public static GetPointUnchecked ( this surf, ColorBgra surfDataPtr, int surfWidth, int x, int y ) : ColorBgra
surf this
surfDataPtr ColorBgra
surfWidth int
x int
y int
Результат ColorBgra

GetPointUnchecked() публичный статический Метод

public static GetPointUnchecked ( this surf, int x, int y ) : ColorBgra
surf this
x int
y int
Результат ColorBgra

GetRight() публичный статический Метод

public static GetRight ( this rect ) : double
rect this
Результат double

GetRowAddressUnchecked() публичный статический Метод

public static GetRowAddressUnchecked ( this surf, ColorBgra surfDataPtr, int surfWidth, int y ) : ColorBgra*
surf this
surfDataPtr ColorBgra
surfWidth int
y int
Результат ColorBgra*

GetRowAddressUnchecked() публичный статический Метод

public static GetRowAddressUnchecked ( this surf, int y ) : ColorBgra*
surf this
y int
Результат ColorBgra*

GetSize() публичный статический Метод

public static GetSize ( this surf ) : Gdk.Size
surf this
Результат Gdk.Size

Location() публичный статический Метод

public static Location ( this r ) : Point
r this
Результат Cairo.Point

SetPixel() публичный статический Метод

public static SetPixel ( this surf, ColorBgra surfDataPtr, int surfWidth, int x, int y, Color color ) : void
surf this
surfDataPtr ColorBgra
surfWidth int
x int
y int
color Color
Результат void

SetPixel() публичный статический Метод

public static SetPixel ( this surf, int x, int y, Color color ) : void
surf this
x int
y int
color Color
Результат void

ToCairoColor() публичный статический Метод

public static ToCairoColor ( this color ) : Color
color this
Результат Cairo.Color

ToCairoRectangle() публичный статический Метод

public static ToCairoRectangle ( this r ) : Rectangle
r this
Результат Cairo.Rectangle

ToColorBgra() публичный статический Метод

public static ToColorBgra ( this color ) : ColorBgra
color this
Результат ColorBgra

ToGdkColor() публичный статический Метод

public static ToGdkColor ( this color ) : Gdk.Color
color this
Результат Gdk.Color

ToGdkRectangle() публичный статический Метод

public static ToGdkRectangle ( this r ) : Gdk.Rectangle
r this
Результат Gdk.Rectangle

ToPixbuf() публичный статический Метод

public static ToPixbuf ( this surf ) : Gdk.Pixbuf
surf this
Результат Gdk.Pixbuf

ToString2() публичный статический Метод

public static ToString2 ( this c ) : string
c this
Результат string

ToUint() публичный статический Метод

public static ToUint ( this c ) : uint
c this
Результат uint