I’ve a weird problem, which I don’t know how to solve, as this website, doesn’t give any information about it. So that is why I came here to ask you guys ^w^
Now my problem is that Bitmap is throwing an error in my face…
(Note: all the bmps are the same)
bmpImage = Bitmap.createBitmap(bmp, 0, 0, 11, 11);
^This line works
bmpImage = Bitmap.createBitmap(bmp, 0, 0, 22, 11);
^This line works
bmpImage = Bitmap.createBitmap(bmp, 11, 0, 22, 11);
^This line throws an error:
10-21 20:53:29.486: E/AndroidRuntime(27566): java.lang.IllegalArgumentException: x + width must be <= bitmap.width()
But the bitmap.getWidth() = 22 and the bitmap.getHeight() = 11 (as you can see from line 2, that is working…)
So basically I don’t know what’s really wrong about this line of code…
[Edit:] This topic should be in the android fora :-X