Tao.Sdl SDK Documentation

SdlGfx.SDL_imageFilterNormalizeLinear Method 

SDL_imageFilterNormalizeLinear: D = saturation255((Nmax - Nmin)/(Cmax - Cmin)*(S - Cmin) + Nmin)

[Visual Basic]
Public Shared Function SDL_imageFilterNormalizeLinear( _
   ByVal Src1 As Byte(), _
   ByVal Dest As Byte(), _
   ByVal length As Integer, _
   ByVal Cmin As Integer, _
   ByVal Cmax As Integer, _
   ByVal Nmin As Integer, _
   ByVal Nmax As Integer _
) As Integer
[C#]
public static int SDL_imageFilterNormalizeLinear(
   byte[] Src1,
   byte[] Dest,
   int length,
   int Cmin,
   int Cmax,
   int Nmin,
   int Nmax
);

Parameters

Src1
Array of bytes
Dest
Array of bytes returned after operation.
length
Size of array
Cmin
Threshold
Cmax
Threshold
Nmin
Threshold
Nmax
Threshold

Return Value

Returns 0 for success and -1 for Error.

Remarks

Binds to C-function call in SDL_imageFilter.h.

            int SDL_imageFilterNormalizeLinear(unsigned char *Src1, unsigned char *Dest, int length, int Cmin, int Cmax, int Nmin, int Nmax);
            

See Also

SdlGfx Class | Tao.Sdl Namespace