×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Sep 2007
    Posts
    28

    Unhappy Confusing Performance

    Hello guys i wrote an image processing program... its working just fine in both phone and the emulator... i am using netbeans 6.0 with wireless toolkit 2.5.2...
    after that i was trying to make a new image using the method

    Code:
    imgFace = Image.createImage(imgFace, getStartX()+20, getStartY(), getX()-20, getY(), Sprite.TRANS_NONE);
    the emulator performed as expected and gave the part of the source image as the new image...

    but when i tried to run the same thing on a sony ericcson k750i its just giving a blank screen and nokia 6630 gave the error invalid height or width error...

    whats confusing is the emulator shows the expected output but phones doesnt.. what may be the problem.. i checked the height and width and its perfectly normal value...

  2. #2
    Nokia Developer Champion
    Join Date
    Sep 2007
    Posts
    915

    Exclamation Re: Confusing Performance

    Are you using png image or some else like jpg,bmp etc. ?


    -Kartik Trivedi

  3. #3
    Registered User
    Join Date
    Sep 2007
    Posts
    28

    Re: Confusing Performance

    hmmm i am taking it from a png picture....

  4. #4
    Nokia Developer Champion
    Join Date
    Sep 2007
    Posts
    915

    Exclamation Re: Confusing Performance

    Use the following code to get the size of device and then do according to it.


    int height=this.getHeight();
    int width=this.getWidth();

    Happy Coding

Similar Threads

  1. Slow MSC write performance with N95
    By jsoberan in forum Wired and Wireless interfaces (Closed)
    Replies: 0
    Last Post: 2008-03-08, 00:22
  2. S60 emulator performance and single IMG file
    By chall3ng3r in forum Tools and SDK Feedback (Closed)
    Replies: 0
    Last Post: 2008-02-18, 23:22
  3. Replies: 4
    Last Post: 2007-11-26, 09:38
  4. wide variation in emulator correctness and performance
    By jgreif in forum Tools and SDK Feedback (Closed)
    Replies: 0
    Last Post: 2006-12-23, 01:04

Posting Permissions

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