C# Класс SoundInTheory.DynamicImage.Filters.ImageMath

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

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

Метод Описание
BilinearInterpolate ( double x, double y, Color nw, Color ne, Color sw, Color se ) : Color

Bilinear interpolation of ARGB values.

BilinearInterpolate ( float x, float y, int nw, int ne, int sw, int se ) : int

Bilinear interpolation of ARGB values.

Clamp ( int x, int a, int b ) : int

Clamps a value to an interval.

Mod ( double a, double b ) : double

Returns a mod b. This differs from the % operator with respect to negative numbers.

Mod ( int a, int b ) : int

Returns a mod b. This differs from the % operator with respect to negative numbers.

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

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

Bilinear interpolation of ARGB values.
public static BilinearInterpolate ( double x, double y, Color nw, Color ne, Color sw, Color se ) : Color
x double The X interpolation parameter 0..1
y double The y interpolation parameter 0..1
nw Color
ne Color
sw Color
se Color
Результат Color

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

Bilinear interpolation of ARGB values.
public static BilinearInterpolate ( float x, float y, int nw, int ne, int sw, int se ) : int
x float The X interpolation parameter 0..1
y float The y interpolation parameter 0..1
nw int
ne int
sw int
se int
Результат int

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

Clamps a value to an interval.
public static Clamp ( int x, int a, int b ) : int
x int The input parameter.
a int The lower clamp threshold.
b int The upper clamp threshold.
Результат int

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

Returns a mod b. This differs from the % operator with respect to negative numbers.
public static Mod ( double a, double b ) : double
a double The dividend.
b double The divisor.
Результат double

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

Returns a mod b. This differs from the % operator with respect to negative numbers.
public static Mod ( int a, int b ) : int
a int The dividend.
b int The divisor.
Результат int