C# Класс Pinta.ImageManipulation.Utility

Показать файл Открыть проект

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

Метод Описание
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