C#
Code:
private void Print()
{
BinaryReader Reader = new BinaryReader(File.Open(Path, FileMode.Open));
Int16 Width = Reader.ReadInt16();
Int16 Height = Reader.ReadInt16();
Bitmap Image = new Bitmap(Width, Height);
Byte Alpha, Red, Green, Blue;
for (Int16 Index = 1; Index <= 4; Index++)
{
for (Int16 Y = 0; Y < Height; Y++)
{
for (Int16 X = (Int16)(256 * (Index - 1)); X < (Int16)((Width / 4) * Index); X++)
{
Blue = Reader.ReadByte();
Green = Reader.ReadByte();
Red = Reader.ReadByte();
Alpha = Reader.ReadByte();
Image.SetPixel(X, Y, Color.FromArgb(Alpha, Red, Green, Blue));
}
}
}
this.ClientSize = new System.Drawing.Size(Width, Height+ 24);
this.DesktopLocation = new Point((SystemInformation.VirtualScreen.Width / 2) - ((Width / 2) + 8), (SystemInformation.VirtualScreen.Height / 2) - ((Height / 2) + 31));
pictureBox1.Image = Image;
Reader.Close();
}