Tao.Sdl SDK Documentation

SdlGfx.SDL_imageFilterShiftRightAndMultByByte Method 

SDL_imageFilterShiftRightAndMultByByte: D = saturation255((S >> N) * C)

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

Parameters

Src1
Array of bytes
Dest
Array of bytes returned after operation.
length
Size of array
N
Shift
C
Byte

Return Value

Returns 0 for success and -1 for Error.

Remarks

Binds to C-function call in SDL_imageFilter.h.

            int SDL_imageFilterShiftRightAndMultByByte(unsigned char *Src1, unsigned char *Dest, int length, unsigned char N, unsigned char C)
            

See Also

SdlGfx Class | Tao.Sdl Namespace