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
Posts: 96
Registered: ‎04-28-2009
My Device: Not Specified

how to develop blackberry using image

    dear all,

 

 

how to develop an application on blackberry handset and on the code is containing an image...

 

please give an example first

 

 

regards

Developer
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: how to develop blackberry using image

You could find similar questions posted on the forum.

 

You have to Create A Bitmap and using bitmap create a BitmapField and add this BitmapField to your screen.

 

 


Use Search. "Accept Solution" If the problem is resolved.
Highlighted
Developer
Posts: 638
Registered: ‎07-02-2009
My Device: Not Specified

Re: how to develop blackberry using image

try something like this.........

	private class ImageManager extends Manager
	{
		private Bitmap background; 
ImageManager(){
super(Manager.NO_VERTICAL_SCROLL | Manager.NO_HORIZONTAL_SCROLL);
background = Bitmap.getBitmapResource("newbg/bg.png");
} protected void sublayout(int width, int height) { setExtent(width, height); } public void paint(Graphics g) { g.drawBitmap(1, 40, background.getWidth(), background.getHeight(), background, 0, 0); super.paint(g); }

 

 

Thanks and Regards,
PraveenGoparaju.
New Developer
Posts: 96
Registered: ‎04-28-2009
My Device: Not Specified

Re: how to develop blackberry using image

thanks for the answer....before i a really newbie for blackberry platform