Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Screen buffer size

by BlackBerry Development Advisor ‎02-16-2010 04:00 PM - edited ‎09-16-2010 02:42 PM (1,508 Views)

Summary

 

This article applies to the BlackBerry® wireless device based on Java™.

 


Description

 

Graphics buffering is a task done frequently to reduce flicker caused by repainting a display surface. The idea is that all image data is first drawn to a buffer in memory and the contents of the buffer are copied quickly to the display surface. This should reduce the time to repaint the screen and, in turn, the flicker. The BlackBerry device supports this concept. In BlackBerry Device Software 3.8 and 4.0, the screen buffer size approximately obeys the following formula:

   

        (screen width * screen height)


Note: As a calculation safe guard, this formula is approximate and the actual buffer is a little larger than what the formula indicates.

 

For Device Software 4.0 Service Pack 2 and later, the size of the buffer is increased to approximately obey this new formula:

 

        (screen width * screen height * 2)

 

Note: As a calculation safeguard, the actual buffer is a little larger.

 


Additional Information

 

For more information on using the Graphics class, please see the BlackBerry Application Developer Guide Volume 1: Fundamentals.

Contributors