Tao.Sdl SDK Documentation

SdlGfx.SDL_imageFilterClipToRange Method 

SDL_imageFilterClipToRange: D = (S >= Tmin) & (S <= Tmax) 255:0

[Visual Basic]
Public Shared Function SDL_imageFilterClipToRange( _
   ByVal Src1 As Byte(), _
   ByVal Dest As Byte(), _
   ByVal length As Integer, _
   ByVal Tmin As Byte, _
   ByVal Tmax As Byte _
) As Integer
[C#]
public static int SDL_imageFilterClipToRange(
   byte[] Src1,
   byte[] Dest,
   int length,
   byte Tmin,
   byte Tmax
);

Parameters

Src1
Array of bytes
Dest
Array of bytes returned after operation.
length
Size of array
Tmin
Threshold
Tmax
Threshold

Return Value

Returns 0 for success and -1 for Error.

Remarks

Binds to C-function call in SDL_imageFilter.h.

            int SDL_imageFilterClipToRange(unsigned char *Src1, unsigned char *Dest, int length, unsigned char Tmin, unsigned char Tmax);
            

See Also

SdlGfx Class | Tao.Sdl Namespace