Hi;
I want to get value of a pixel using Nokia UI api. But I am getting illegal argument exception when I run the code below. I have tried it in actual 3220 and 7210 SDK emulator. Please, have you got any idea?

int[] pixels = new int[1];
dg.getPixels ( pixels, 0, 1, 50, 50, 1, 1, DirectGraphics.TYPE_BYTE_1_GRAY_VERTICAL );
System.out.println( pixels[ 0 ] );