C# 클래스 Pinta.Core.Utility

파일 보기 프로젝트 열기: xxgreg/Pinta

공개 메소드들

메소드 설명
Blend ( ColorBgra ca, ColorBgra cb, byte cbAlpha ) : ColorBgra

Smoothly blends between two colors.

Clamp ( double x, double min, double max ) : double
Clamp ( float x, float min, float max ) : float
Clamp ( int x, int min, int max ) : int
ClampToByte ( double x ) : byte
ClampToByte ( float x ) : byte
ClampToByte ( int x ) : byte
ColorDifference ( ColorBgra a, ColorBgra b ) : int
ColorDifferenceSquared ( ColorBgra a, ColorBgra b ) : int
FastScaleByteByByte ( byte a, byte b ) : byte
GetLinePoints ( Gdk first, Gdk second ) : Gdk.Point[]
GetRegionBounds ( Gdk rects, int startIndex, int length ) : Gdk.Rectangle

Allows you to find the bounding box for a "region" that is described as an array of bounding boxes.

GetStaticName ( Type type ) : string
InflateRectangles ( Gdk rects, int len ) : Gdk.Rectangle[]
Lerp ( Cairo from, Cairo to, float frac ) : Cairo.PointD
Lerp ( double from, double to, double frac ) : double
Lerp ( float from, float to, float frac ) : float
RectanglesToRegion ( Gdk rects ) : Gdk.Region
Swap ( int &a, int &b ) : void

비공개 메소드들

메소드 설명
IsNumber ( float x ) : bool

메소드 상세

Blend() 공개 정적인 메소드

Smoothly blends between two colors.
public static Blend ( ColorBgra ca, ColorBgra cb, byte cbAlpha ) : ColorBgra
ca ColorBgra
cb ColorBgra
cbAlpha byte
리턴 ColorBgra

Clamp() 공개 정적인 메소드

public static Clamp ( double x, double min, double max ) : double
x double
min double
max double
리턴 double

Clamp() 공개 정적인 메소드

public static Clamp ( float x, float min, float max ) : float
x float
min float
max float
리턴 float

Clamp() 공개 정적인 메소드

public static Clamp ( int x, int min, int max ) : int
x int
min int
max int
리턴 int

ClampToByte() 공개 정적인 메소드

public static ClampToByte ( double x ) : byte
x double
리턴 byte

ClampToByte() 공개 정적인 메소드

public static ClampToByte ( float x ) : byte
x float
리턴 byte

ClampToByte() 공개 정적인 메소드

public static ClampToByte ( int x ) : byte
x int
리턴 byte

ColorDifference() 공개 정적인 메소드

public static ColorDifference ( ColorBgra a, ColorBgra b ) : int
a ColorBgra
b ColorBgra
리턴 int

ColorDifferenceSquared() 공개 정적인 메소드

public static ColorDifferenceSquared ( ColorBgra a, ColorBgra b ) : int
a ColorBgra
b ColorBgra
리턴 int

FastScaleByteByByte() 공개 정적인 메소드

public static FastScaleByteByByte ( byte a, byte b ) : byte
a byte
b byte
리턴 byte

GetLinePoints() 공개 정적인 메소드

public static GetLinePoints ( Gdk first, Gdk second ) : Gdk.Point[]
first Gdk
second Gdk
리턴 Gdk.Point[]

GetRegionBounds() 공개 정적인 메소드

Allows you to find the bounding box for a "region" that is described as an array of bounding boxes.
public static GetRegionBounds ( Gdk rects, int startIndex, int length ) : Gdk.Rectangle
rects Gdk
startIndex int
length int
리턴 Gdk.Rectangle

GetStaticName() 공개 정적인 메소드

public static GetStaticName ( Type type ) : string
type System.Type
리턴 string

InflateRectangles() 공개 정적인 메소드

public static InflateRectangles ( Gdk rects, int len ) : Gdk.Rectangle[]
rects Gdk
len int
리턴 Gdk.Rectangle[]

Lerp() 공개 정적인 메소드

public static Lerp ( Cairo from, Cairo to, float frac ) : Cairo.PointD
from Cairo
to Cairo
frac float
리턴 Cairo.PointD

Lerp() 공개 정적인 메소드

public static Lerp ( double from, double to, double frac ) : double
from double
to double
frac double
리턴 double

Lerp() 공개 정적인 메소드

public static Lerp ( float from, float to, float frac ) : float
from float
to float
frac float
리턴 float

RectanglesToRegion() 공개 정적인 메소드

public static RectanglesToRegion ( Gdk rects ) : Gdk.Region
rects Gdk
리턴 Gdk.Region

Swap() 공개 정적인 메소드

public static Swap ( int &a, int &b ) : void
a int
b int
리턴 void