Class ByteVector4Grid
- Namespace
- OmegaEngine.Foundation.Geometry
- Assembly
- OmegaEngine.Foundation.dll
A 2D grid of ByteVector4 values that can be stored in ARGB PNG files.
public class ByteVector4Grid : Grid<ByteVector4>
- Inheritance
-
ByteVector4Grid
- Inherited Members
- Extension Methods
Constructors
ByteVector4Grid(ByteVector4[,])
Creates a new grid based on an existing array.
public ByteVector4Grid(ByteVector4[,] data)
Parameters
data
ByteVector4[,]Used as the internal array (no defensive copy). Do not modify once passing in!
ByteVector4Grid(int, int)
Creates a new empty grid.
public ByteVector4Grid(int width, int height)
Parameters
width
intThe width of the grid (number of values along the X axis).
height
intThe height of the grid (number of values along the Y axis).
Methods
GenerateBitmap()
Generates a bitmap representation of the grid.
public override Bitmap GenerateBitmap()
Returns
Load(Stream)
Loads a grid from a PNG stream.
public static ByteVector4Grid Load(Stream stream)
Parameters
stream
Stream