Regarding OTA image in Nokia

Regarding OTA image in Nokia SearchSearch
Author Message
Shine wellington
New member
Username: Shine_jp

Post Number: 1
Registered: 02-2004
Posted on Tuesday, February 17, 2004 - 08:20 am:   

Hi,

I changed an image to OTA format .ANd then i read it and stored it in a short array.
I want to use drawPixels() of DirectGraphics.
But at run time its showing exception.
java.lang.ArrayIndexOutOfBoundsException: Not enough pixels in pixel array.

What can be the reason.

Width is 23
height is 22

Rest data length is 66.

Regards
Shine
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 1912
Registered: 10-2002
Posted on Wednesday, February 18, 2004 - 08:26 pm:   

Sorry Shine,

I've never worked with an OTA format image in the manner that you are describing.

But if the width is 23, and the height is 22 ... my gut says that the tool you are using might not like that the width is not divisible by 8. Try making your image width 24 x height 22, and it might work better.

-bn