Breakup a 10x16x13 bmp help!....

  • Thread starter Thread starter Eric Miller
  • Start date Start date
E

Eric Miller

How can I take a bmp image made up of 10 16x13 images and load them into a
imagelist at runtime?

I have a bmp image I want to use from my VC++ 6.0 and I don't to take the
time to break down the image manually through Paint Shop Pro. Because I
have three states of the image so I rather break it down programmically.

Thanks!...
 
Eric said:
How can I take a bmp image made up of 10 16x13 images and load them into a
imagelist at runtime?

Just create the list of bitmaps, then for each one use the
Graphics.FromImage() method on each one to get a Graphics object, and
then use Graphics.DrawImage on that Graphics object to extract the
individual area of the original bitmap you want.

Pete
 
Thanks Peter!

Peter Duniho said:
Just create the list of bitmaps, then for each one use the
Graphics.FromImage() method on each one to get a Graphics object, and then
use Graphics.DrawImage on that Graphics object to extract the individual
area of the original bitmap you want.

Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top