Momoro
I'm gonna put some dirt in your eye..
- 269
- Posts
- 5
- Years
- Castelia City, Unova
- Seen Feb 4, 2023
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:
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 😛
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:
Code:
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 😛