C# Class BodyTetrisWrapper.ImageUtils

Show file Open project: NBLANCHE/Project

Public Methods

Method Description
BlackOut ( byte pixels, int shape, int orientation, int w, int h ) : void
ImageGetSquare ( byte pixels, int w, int h, int squareSize, int X, int Y ) : byte[]
ImageSubset ( byte pixels, int w, int h, int X1, int Y1, int X2, int Y2 ) : byte[]
ImageSubsetUnit ( byte pixels, int w, int h, int squareSize, int X1, int Y1, int X2, int Y2 ) : byte[]
RotateImage ( byte pixels, int w, int h, int rotation ) : byte[]
RotateImage90s ( byte pixels, int w, int h, int rotation ) : byte[]

Method Details

BlackOut() public static method

public static BlackOut ( byte pixels, int shape, int orientation, int w, int h ) : void
pixels byte
shape int
orientation int
w int
h int
return void

ImageGetSquare() public static method

public static ImageGetSquare ( byte pixels, int w, int h, int squareSize, int X, int Y ) : byte[]
pixels byte
w int
h int
squareSize int
X int
Y int
return byte[]

ImageSubset() public static method

public static ImageSubset ( byte pixels, int w, int h, int X1, int Y1, int X2, int Y2 ) : byte[]
pixels byte
w int
h int
X1 int
Y1 int
X2 int
Y2 int
return byte[]

ImageSubsetUnit() public static method

public static ImageSubsetUnit ( byte pixels, int w, int h, int squareSize, int X1, int Y1, int X2, int Y2 ) : byte[]
pixels byte
w int
h int
squareSize int
X1 int
Y1 int
X2 int
Y2 int
return byte[]

RotateImage() public static method

public static RotateImage ( byte pixels, int w, int h, int rotation ) : byte[]
pixels byte
w int
h int
rotation int
return byte[]

RotateImage90s() public static method

public static RotateImage90s ( byte pixels, int w, int h, int rotation ) : byte[]
pixels byte
w int
h int
rotation int
return byte[]