C# Class Pinta.ImageManipulation.Utility

Afficher le fichier Open project: PintaProject/Pinta.ImageManipulation

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
IsNumber ( float x ) : bool

Method Details

Clamp() public static méthode

public static Clamp ( double x, double min, double max ) : double
x double
min double
max double
Résultat double

Clamp() public static méthode

public static Clamp ( float x, float min, float max ) : float
x float
min float
max float
Résultat float

Clamp() public static méthode

public static Clamp ( int x, int min, int max ) : int
x int
min int
max int
Résultat int

ClampToByte() public static méthode

public static ClampToByte ( double x ) : byte
x double
Résultat byte

ClampToByte() public static méthode

public static ClampToByte ( float x ) : byte
x float
Résultat byte

ClampToByte() public static méthode

public static ClampToByte ( int x ) : byte
x int
Résultat byte

FastDivideShortByByte() public static méthode

public static FastDivideShortByByte ( ushort n, byte d ) : int
n ushort
d byte
Résultat int

FastScaleByteByByte() public static méthode

public static FastScaleByteByByte ( byte a, byte b ) : byte
a byte
b byte
Résultat byte

GetBilinearSampleClamped() public static méthode

public static GetBilinearSampleClamped ( ISurface src, float x, float y ) : ColorBgra
src ISurface
x float
y float
Résultat ColorBgra

GetBilinearSampleWrapped() public static méthode

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
Résultat ColorBgra

GetBilinearSampleWrapped() public static méthode

public static GetBilinearSampleWrapped ( ISurface src, float x, float y ) : ColorBgra
src ISurface
x float
y float
Résultat ColorBgra

GetBlendModeOp() public static méthode

public static GetBlendModeOp ( BlendMode mode ) : UserBlendOp
mode BlendMode
Résultat UserBlendOp

GetRegionBounds() public static méthode

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
Résultat Rectangle

GetRgssOffsets() public static méthode

public static GetRgssOffsets ( PointD samplesArray, int sampleCount, int quality ) : void
samplesArray PointD
sampleCount int
quality int
Résultat void

Lerp() public static méthode

public static Lerp ( PointD from, PointD to, float frac ) : PointD
from PointD
to PointD
frac float
Résultat PointD

Lerp() public static méthode

public static Lerp ( double from, double to, double frac ) : double
from double
to double
frac double
Résultat double