You Are Here:

Community: Developer Discussion Boards

#1 Old 7650 phone performed different with emulator? :-( - 2002-11-08, 02:49

Join Date: Mar 2003
Posts: 55
ouseka
Offline
Regular Contributor
my code:
Image image = createMutableImage(...);
DirectGraphics dg = DriectUtils.getDirectGraphics( image.getGraphics() );
byte[] pxls = new byte[...];
byte[] mask = new byte[...];
dg.getPixels(pxls, mask, 0, ..., dg.getNativePixelFormat());

It works on the Serial 60 Emulator, but when running on the 7650 phone,
it throw `IllegalArgumentException'
The nokia api said, Throws java.lang.IllegalArgumentException - if x, y, width or height is negative, or the format is wrong or unsupported.
But my x, y, width, height, none is negative, and the format is getNativePixelFormat().
Thanx!
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia