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

Reply
New Developer
bbdesginer
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

thanks

Please use plain text.
Developer
dchapiesky
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..

 

 

Please use plain text.
New Developer
bbdesginer
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 :smileyhappy:

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
Please use plain text.
Administrator
MSohm
Posts: 14,362
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
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.
Found a bug? Report it using Issue Tracker
Please use plain text.