I tried doing the following to test transparency on series 40 emulator (got it from concept sdk).
Image testImage = DirectUtils.createImage( 100, 100, 0x000000FF );
short pixels = new short;
for(int i = 0; i < w; i++)
pixels[offset] = 0x1F00;
DirectGraphics tempDG = DirectUtils.getDirectGraphics( testImage.getGraphics() );
tempDG.drawPixels( pixels, true, 0, 100, 0, 0, 100, 1, 0, DirectGraphics.TYPE_USHORT_4444_ARGB );
// End code
I expect to see a single red line on where I draw the image, but I get a blue rectangle under the red line which is supposed to be transparent right?
My question, is the emulator doesn't support transparency or am I doing something wrong?
Thank you very much!