C# 클래스 Pinta.ImageManipulation.Utility

파일 보기 프로젝트 열기: PintaProject/Pinta.ImageManipulation

공개 메소드들

메소드 설명
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
FastDivideShortByByte ( ushort n, byte d ) : int
FastScaleByteByByte ( byte a, byte b ) : byte
GetBilinearSampleClamped ( ISurface src, float x, float y ) : ColorBgra
GetBilinearSampleWrapped ( ISurface src, ColorBgra srcDataPtr, int srcWidth, int srcHeight, float x, float y ) : ColorBgra
GetBilinearSampleWrapped ( ISurface src, float x, float y ) : ColorBgra
GetBlendModeOp ( BlendMode mode ) : UserBlendOp
GetRegionBounds ( Rectangle rects, int startIndex, int length ) : Rectangle

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

GetRgssOffsets ( PointD samplesArray, int sampleCount, int quality ) : void
Lerp ( PointD from, PointD to, float frac ) : PointD
Lerp ( double from, double to, double frac ) : double

비공개 메소드들

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

메소드 상세

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

FastDivideShortByByte() 공개 정적인 메소드

public static FastDivideShortByByte ( ushort n, byte d ) : int
n ushort
d byte
리턴 int

FastScaleByteByByte() 공개 정적인 메소드

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

GetBilinearSampleClamped() 공개 정적인 메소드

public static GetBilinearSampleClamped ( ISurface src, float x, float y ) : ColorBgra
src ISurface
x float
y float
리턴 ColorBgra

GetBilinearSampleWrapped() 공개 정적인 메소드

public static GetBilinearSampleWrapped ( ISurface src, ColorBgra srcDataPtr, int srcWidth, int srcHeight, float x, float y ) : ColorBgra
src ISurface
srcDataPtr ColorBgra
srcWidth int
srcHeight int
x float
y float
리턴 ColorBgra

GetBilinearSampleWrapped() 공개 정적인 메소드

public static GetBilinearSampleWrapped ( ISurface src, float x, float y ) : ColorBgra
src ISurface
x float
y float
리턴 ColorBgra

GetBlendModeOp() 공개 정적인 메소드

public static GetBlendModeOp ( BlendMode mode ) : UserBlendOp
mode BlendMode
리턴 UserBlendOp

GetRegionBounds() 공개 정적인 메소드

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

GetRgssOffsets() 공개 정적인 메소드

public static GetRgssOffsets ( PointD samplesArray, int sampleCount, int quality ) : void
samplesArray PointD
sampleCount int
quality int
리턴 void

Lerp() 공개 정적인 메소드

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

Lerp() 공개 정적인 메소드

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