03-04-2011 11:14 AM
I'm new to blackberry development (as of this week) and I'm trying to create a screen that has a bitmap displayed that you can then drag/zoom and I'll go out to a webserver to get the next image and load it. I've seen the scrollableimagefield example and its got me started but I can't drag the image down or to the right because the graphics.drawbitmap's top and left parameters are then negative.
Am I going about this the right way with drawbitmap and if so is there anyway that I could just drag the bitmap down and have the screen be white like if I drag it the opposite way?
Solved! Go to Solution.
03-09-2011 02:15 PM
If you set the background color and clear it
graphics.setbackgroundColor(Color.WHITE);
graphics.clear();
then only paint the portion of the Bitmap that is actually visible, at an appropriate starting position, you will create white space at the top and to the left as I think you want.
03-09-2011 02:21 PM
I actually read up on drawBitmap a little better and figured out what was happening. Thanks for the help though.
03-09-2011 07:03 PM
Well done.
Can you mark this as solved?