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

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.

New Developer
Posts: 2
Registered: ‎07-30-2008
My Device: Not Specified

How to create a BG Strip PNG

Hi all

I am designer and having some problem with bg strip images.


When i give images (transparent png file) to blackberry developers,

its looking perfect in the device


but when i give background strip (1pixel width and 240pixel Height),

the image quality is very bad in the device. can any one guide me

how to create a bg strip png with godd quality


also i need some design suggestion/tips for blackberry

if you can suggest some gud urls that would be great


Posts: 20
Registered: ‎07-30-2008
My Device: Not Specified

Re: How to create a BG Strip PNG

Is the PNG optimized?   Macromedia Fireworks has a great export control which allows you to take a 32k PNG and optimize it down to about 6k for embedding.   I use PNG8 / 256 Colors / Indexed Transparency. 


What are your export settings for the PNG background strip? 



Failing that... A basic set of unit tests would be good place to start and it's easy... 


Test A - Is there a "one off" error some where?


  1) provide a strip which is a single color except for a single pixel of a different color (all blue strip with a red pixel in middle)

  2) have your developers render the strip and check to see if the red pixel walks across the screen diagonaly... if it does then there is a "one-off" or more error somewhere in the rendering loop...



Test B - can the PNG renderer handle a 1 pixel wide strip?


  1) provide a strip which is half the height of the display and 1 pixel in width to your developers

  2) have them display a single instance of the strip centered in the display...  does it look correct?

  3) have them display 2, 3, 4, ... etc side beside also centered in the display... do these look correct...



Test C - Is the bitmap PNG being mangled by resource packing?


  1) Most likely your strip is being embedded as an embedded resource

  2) have your programmers load the PNG from a file resource such as the SD Card Store (easily done with the simulators)

  3) is the background correct?  If it is then the bitmap is being mangled when embedded as a resource..



New Developer
Posts: 2
Registered: ‎07-30-2008
My Device: Not Specified

Re: How to create a BG Strip PNG

[ Edited ]

Thanks a lot for your reply Smiley Happy

I will try this in Fireworks and let you know the result


Currently I am using Photoshop

Image Size:
1 px width - 240 px height
Dark Blue to light Blue Gradient Color BG


PNG Format
    >  File Save for web option
     > PNG-24



Message Edited by bbdesginer on 07-31-2008 11:34 AM
BlackBerry Development Advisor
Posts: 15,885
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: How to create a BG Strip PNG

[ Edited ]
The Plazmic CDK can also be used to optmize images for use on a Blackberry.  You can add your image to a Composer project then choose File, Export to export the project as a png.  The Plazmic CDK is a free download and is available here:  http://www.plazmic.com/en/download/index.shtml
Message Edited by MSohm on 07-31-2008 02:04 PM
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.