My app zooms in and out of pics and lets the user moved the (zoomed)
in pic around.
The key methods for mapping a sub-picture (the one the size of the
screen) is done by using the calls Matrix.setRectToRect and
Bitmap.createBitmap(Bitmap source, int x, int y, int width, int
height, Matrix m, boole
Yes, I managed with this "problem".
I use specific drawBitmap method of Canvas class - public void
drawBitmap (Bitmap bitmap, Rect src, Rect dst, Paint paint)
Example:
Rect rect = new Rect(0, mCanvasHeight - mY, mCanvasHeight,
mBackgroundHeight - mY);
Rect rect2 = new Rect(0, 0, mCanvasWidth, mCan
Nick, Did you figure this one out? I want to do the same.
On Mar 9, 12:50 pm, Nick wrote:
> Hello!
> I'm creating a simple game for Android and faced with a problem: Idea
> is to have a huge "map" image file and re-drawonly small part of it
> (320*480) depending on user actions.
>
> I didn't fin
3 matches
Mail list logo