What is an efficient way (in terms of memory and cpu) to convert an ArrayList<boolean[]> or a boolean[][] into a Bitmap?
Does this way change if we know that the Bitmap must be modified or appended later?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Your best bet is probably to convert your
boolean[][]to anint[]and usesetPixels. This is especially beneficial if you’re going to do many pixel-level modifications later (just re-use theint[]and callsetPixelsagain).