01-24-2011 06:01 AM
Hi everybody, it's me again.
I have an application compiled under 5.0 which workd great with touch device like storm (5.0) but which presents certain leaks when i start it under 6.0
I have a pictureScrollField which take pratically all the screen, under 5.0, when an image is smaller than the space allowed to the pictureScrollField, then it's just paint like this, centered on the screen but not resized.
Under a 6.0 device or simu (torch), the bitmap are everytime resized.
I checked the 5.0 Documention of PictureScrollField and it specified that "image are NOT resized"
Any clue ?
Solved! Go to Solution.
02-03-2011 09:16 AM
I didn't find any solutions so i started creating new Bitmap from the one i dl.
Bitmap resizedBitmap = new Bitmap(360,480); Graphics g = Graphics.create(resizedBitmap); g.setColor(Color.BLACK); g.fillRect(0, 0, 360, 480); bitmap.scaleInto(resizedBitmap, Bitmap.FILTER_BILINEAR, Bitmap.SCALE_TO_FIT);