IMPORTANT question, never had any reply ;(
I am programming a game but when I use getPixels it throuws IllegalArgumentException
The line is:
dg.getPixels(BoxPozadi, null, 0, 0, 1, 1, 1, 1, DirectGraphics.TYPE_BYTE_1_GRAY);
RE: IMPORTANT question, never had any reply ;(
Use TYPE_BYTE_1_GRAY_VERTICAL. The IllegalArgumentException is thrown when the format is not supported on a phone.
e.g. TYPE_USHORT_4444_ARGB is supported on Nokia 7650 and might not be on others.