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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
Raiden
Posts: 490
Registered: ‎07-16-2008

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.

Please use plain text.
Developer
kzettel
Posts: 120
Registered: ‎07-16-2008

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
Please use plain text.
Developer
Raiden
Posts: 490
Registered: ‎07-16-2008

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

Please use plain text.
Developer
simon_hain
Posts: 13,830
Registered: ‎07-29-2008
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
Please use plain text.