[android-developers] Scaling 2d image in different axis

2012-08-27 Thread Numair Qadir
Hi, I'm working on a task , to scale the image, it works fine and scales the image in all direction, but i want it to scale in individual axis, here is my code, thanks for your response switch (event.getAction () MotionEvent.ACTION_MASK) { MotionEvent.ACTION_DOWN case: savedMatrix.set

[android-developers] Scaling an image

2009-06-24 Thread Gavin Aiken
Hey all! This has been frustrating me for a while, all I want is to scale an image to dimensions that I define whilst keeping an aspect ratio. So for example, image comes in at 500 * 500, I want to scale to 320 * 480 so I need 320 * 320 so as not to distort the image. This must be a simple 3