Question: I want use many bitmap for my game canvas.

I can't `Recycle` bitmaps, because I have to use bitmaps for the whole section.

Do mention some guidelines to optimize the code to handle many bitmap also faster performance for my canvas based Game Application.

Currently i am using the following code to get bitmap from drawable resource,

```
    BitmapFactory.Options bfOptions=new BitmapFactory.Options();
    bfOptions.inSampleSize = 1;
    bfOptions.inDither=false;                     //Disable Dithering mode
    bfOptions.inPurgeable=true;                   //Tell to gc that whether it needs free memory, the Bitmap can be cleared
    bfOptions.inInputShareable=true;              //Which kind of reference will be used to recover the Bitmap data after being clear, when it will be used in the future
    bfOptions.inTempStorage=new byte[16 * 1024]; 

    myBitMap=BitmapFactory.decodeResource(getResources(),ID, bfOptions);

```

I am currently following this [code](http://obviam.net/index.php/sprite-animation-with-android/) for drawing in canvas.

the images are in sprite so while trying to load many sprite its giving problem.

In this code link **MainGamePanel.java** is what i am doing exactly . for bitmap decoding i use the above method.

Answer: 
The super simple way:

```
$('#delete').click(function(){
    $(":checkbox[name='yes[]']:not(:checked)").parents('tr').remove();
})

```

You could do an "each" loop, if you want to achieve more, change something :)
Do you wish to show alerts for each checked checkbox or one alert will suffice? For individual alerts:

```
$("#delete").click(function()
{
    var allCheckBoxes = $("input:checkbox[name='yes[]']"),
    selectedCheckBoxes = allCheckBoxes.filter(":checked"),
    unselectedCheckboxes = allCheckBoxes.not(":checked");
    unselectedCheckboxes.closest("tr").remove();
    selectedCheckBoxes.each(function()
                           {
                              alert(this.value);
                           });

}

```

For a single alert we can create a comma separated string in the "each" function and then alert it.