Reputation: 1
Hi friends I searched so many threads but I didnt get any solution for scrolling vertically when the bitmaps are drawn using graphics with paint method.
Please help me.
Upvotes: 0
Views: 220
Reputation: 293
If you are trying to (as Jonathan said) scroll trough an image that is larger than the screen.
To do it without any fancy function´s help and you are manually painting inside your graphics paint method, i would think of using 2 bitmaps, one as a buffer for your image and another one for the actual frame:
Hope it is clear, think of it as having your canvas as a camera to take smaller snapshots of your large_image and moving the large_image so that each snapshot in sequence creates the scrolling effect.
Cheers and hope it helps!.
Upvotes: 3