C# Класс Imager.Interface.OutOfBoundsUtils

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

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

Метод Описание
GetBoundsCheckedCoordinate ( int index, int count, OutOfBoundsHandler handler ) : int

Checks coordinates for over-/underflow and does the correction based on the given OutOfBoundsMode.

GetBoundsCheckedCoordinate ( int index, int count, OutOfBoundsMode mode ) : int

Checks coordinates for over-/underflow and does the correction based on the given OutOfBoundsMode.

GetHandlerOrCrash ( OutOfBoundsMode mode ) : OutOfBoundsHandler

Gets the out of bounds handler or crashes.

Приватные методы

Метод Описание
_ConstantExtension ( int index, int count, bool overflow, bool underflow ) : int
_HalfSampleSymmetric ( int index, int count, bool overflow, bool underflow ) : int
_WholeSampleSymmetric ( int index, int count, bool overflow, bool underflow ) : int
_WrapAround ( int index, int count, bool overflow, bool underflow ) : int

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

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

Checks coordinates for over-/underflow and does the correction based on the given OutOfBoundsMode.
public static GetBoundsCheckedCoordinate ( int index, int count, OutOfBoundsHandler handler ) : int
index int The coordinate index.
count int The sample count.
handler OutOfBoundsHandler The handler.
Результат int

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

Checks coordinates for over-/underflow and does the correction based on the given OutOfBoundsMode.
public static GetBoundsCheckedCoordinate ( int index, int count, OutOfBoundsMode mode ) : int
index int The coordinate index.
count int The sample count.
mode OutOfBoundsMode The mode.
Результат int

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

Gets the out of bounds handler or crashes.
public static GetHandlerOrCrash ( OutOfBoundsMode mode ) : OutOfBoundsHandler
mode OutOfBoundsMode The mode.
Результат OutOfBoundsHandler