C# Class FlatRedBall.IO.BmpLoader

Class responsible for creating ImageDatas from BMP files.
Exibir arquivo Open project: vchelaru/FlatRedBall

Public Methods

Method Description
GetPixelData ( string fileName ) : ImageData

ImageData takes a fileName (string) and loads the BMP from the file.

Private Methods

Method Description
BuildPixels ( Color &pixels, Stream &file, uint bitCount, int pixelWidth, int pixelHeight ) : void
CheckSignature ( Stream &file ) : bool
FormUint2 ( byte bytes ) : uint
FormUint4 ( byte bytes ) : uint
LoadFile ( string fileName ) : byte[]
ParseBytes ( Stream &file, BMPHeader &bmpHeader ) : void
ReadFile ( Stream stream ) : byte[]

Method Details

GetPixelData() public static method

ImageData takes a fileName (string) and loads the BMP from the file.
public static GetPixelData ( string fileName ) : ImageData
fileName string
return FlatRedBall.Graphics.Texture.ImageData