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
Developer
Posts: 490
Registered: ‎07-16-2008
My Device: Not Specified

Display point on center of screen

My application has larger BitmapField than screen size. I want to display center point on the screen.

This point is independence for BitmapField. How to solve this ? guys'

 

Tnx for your advice.

Developer
Posts: 120
Registered: ‎07-16-2008
My Device: 9000

Re: Display point on center of screen

You can try drawing the image manually in your screen's paint method.  The method graphics.drawBitmap accepts width, height, left, and top which will let you draw the portion of your bitmap you want to draw.  You can use Graphics.getScreenHeight/Width to determine which portion to draw.
Kurt Zettel | Chief Architect | Metova
www.metova.com
Highlighted
Developer
Posts: 490
Registered: ‎07-16-2008
My Device: Not Specified

Re: Display point on center of screen

Tnx for your response. I can draw on BitmapField. But I don't need to draw on BitmapField. Image to draw is independence with BitmapField. Is it possible to do ? I am searching the best solution.

 

Tnx again' Kurt Zettel

Developer
Posts: 16,750
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Display point on center of screen

the paint method is available for field and all of its subclasses, e.g. screen.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter