Loading a bitmap to create sub-bitmaps

Guardian17

Active Member
Licensed User
Longtime User
I'm starting a new game App where I want to load a large bitmap and then generate smaller bitmaps from that large bitmap for use in the game. The large source bitmap will never be displayed.

What is the proper method to load that large bitmap? Do I load it into an ImageView and generate my sub-bitmap images from that Imageview and never display that ImageView? Or is there some other kind of Bitmap object that should be used for the source bitmap? I know I should probably use the BitmapExtended library and use something like "createBitmap3" to generate the sub-bitmaps.

I would assume that once the sub-bitmaps have been generated that I can remove the large source bitmap (from memory) which is no longer needed.
 

Guardian17

Active Member
Licensed User
Longtime User
Solved My Own Problem, but Additional Problem

OK, Silly Me.:BangHead:

Realized that all I need to do is define a variable as a Bitmap.

I have tried downloading and installing the BitmapExtended library by copying the BitmapExtended.jar file to my Libraries folder. However, the BitmapExtended library does not show up in my right-panel of the IDE under Libraries.

I have tried Dimming a variable as "BitmapExtended", but the IDE does not recognize the BitmapExtended type, evidently because the BitmapExtended library is not being seen.

What am I doing wrong with this library?
 
Upvote 0

Esop

Member
Licensed User
Longtime User
OK, Silly Me.:BangHead:

Realized that all I need to do is define a variable as a Bitmap.

I have tried downloading and installing the BitmapExtended library by copying the BitmapExtended.jar file to my Libraries folder. However, the BitmapExtended library does not show up in my right-panel of the IDE under Libraries.

I have tried Dimming a variable as "BitmapExtended", but the IDE does not recognize the BitmapExtended type, evidently because the BitmapExtended library is not being seen.

What am I doing wrong with this library?

I'm sure you also placed the xml file in the library folder But if you didn't...?
 
Upvote 0

Guardian17

Active Member
Licensed User
Longtime User
YES. Problem Solved

OMG. How VERY SILLY of me!! :eek: :BangHead: :BangHead: :eek:

After placing the XML file into the Libraries folder, as also mentioned in the Beginners Guide :eek:, that library appeared in the right panel of the IDE under the Libraries available.

Thank you for pointing this out. :eek:
 
Upvote 0
Top