Extract portion of a bitmap to display, not entire bitmap.

  • Thread starter Thread starter Alex Gray
  • Start date Start date
A

Alex Gray

Hi,

I have an app with a whole bunch of buttons, and each of these buttons
have their own bitmap file.

I would like to just have one giant bitmap, which contains all the
images i'll ever want to use.

ie:
this.ALL_BITMAPS = new Bitmap(GetType(),"Bitmaps.AllBitmaps.bmp");

and then have something like this:

this.ButtonBitmap = new Bitmap(this.ALL_BITMAPS, a location in
ALL_BITMAPS, size...)

something similar to good ol' BitBlt function.
-alex-
 
Right after i posted this message, i found the solution in another message.
The solution is to use Clone().
 
Back
Top