I wanna create an bitmap array. Is it possible? If yes, which is the way to declare the Bitmap array. and how to initialize it?
Thank you
You could use an Arraylist :
ArrayList<Bitmap> bitmapArray = new ArrayList<Bitmap>();
bitmapArray.add(myBitMap); // Add a bitmap
bitmapArray.get(0); // Get first bitmap
or simply an Array of bitmap like :
Bitmap[] bitmapArray = new Bitmap[];
Nevertheless be careful with the size of your image. You will probably have some trouble if you try to store lot of big image.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With