-2

I see answers to questions suggesting the use of BufferedImages for performing increases that I am very interested in.

How can I avoid garbage collection delays in Java games? (Best Practices)

But I cannot find out a way to import it because it is not part of the SDK of course. How has everyone else who have used it achieved this?

I am basically looking for a way to store graphics I am writing on canvas without having to build them totally from stratch each time. For example storing a drawText() as a BufferedImage and drawing that each frame.

Community
  • 1
  • 1
Moz
  • 1,494
  • 6
  • 21
  • 32

1 Answers1

3

Any answers suggesting the use of BufferedImage in an Android environment are wrong; as you note, it's not part of the Android environment. However, you can gain the same efficiency effects by using a Bitmap.

Ted Hopp
  • 232,168
  • 48
  • 399
  • 521