Age 28
Male
Castelia City, Unova
Seen 1 Week Ago
Posted 1 Week Ago
237 posts
1.7 Years
Hello 😃

I recently revisited an old project of mine called Advance Edit (no idea if that name's taken 🤔 hope it isn't!), and I was going to make a sprite editor, but I've hit a roadblock 😕

I program mainly in Windows Forms C#, so this is the code I wrote:

BinaryReader br = new BinaryReader(File.OpenRead(filename));

br.BaseStream.Seek(0x728B04, SeekOrigin.Begin);

byte[] bitmap = br.ReadBytes(Convert.ToInt32(br.BaseStream.Length));

Bitmap myBitmap = new Bitmap(new MemoryStream(bitmap));

pictureBox1.Image = myBitmap;

br.Close();
It should work to get the image from the ROM, but for some reason, it doesn't.

The image I'm trying to get is Bulbasaur, and from a Firered ROM.

Any ideas? Thanks 😄

*Sorry if this is the wrong place to post this, I'm not good at forum areas 😛
Nocturnal...? W-What does that mean?😕

Sandalphon

spirit in black

She/her
In bed
Seen 14 Hours Ago
Posted 17 Hours Ago
16,539 posts
7.9 Years
Please post anything related to ROM hacking in the appropriate section.

King of vengeance

Sins cannot be washed away