×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Jan 2009
    Location
    ભારત->ગુજરાત->ભાવનગર
    Posts
    279

    image saving on N900

    here is the sample code below:
    Code:
    QImage img;
    img.save(what to write here??);
    What is the default path to save image on n900??
    Regards
    Viral Parmar

  2. #2
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: image saving on N900

    ~/MyDocs/.images

  3. #3
    Registered User
    Join Date
    Jan 2009
    Location
    ભારત->ગુજરાત->ભાવનગર
    Posts
    279

    Re: image saving on N900

    Quote Originally Posted by divanov View Post
    ~/MyDocs/.images
    when i am writing
    Code:
     bool error=img.save("~/MyDocs/.images/n900.png");
    returning false??
    Regards
    Viral Parmar

  4. #4
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: image saving on N900

    Because it doesn't expand tilda to real home path.

  5. #5
    Registered User
    Join Date
    Jan 2009
    Location
    ભારત->ગુજરાત->ભાવનગર
    Posts
    279

    Re: image saving on N900

    Quote Originally Posted by divanov View Post
    Because it doesn't expand tilda to real home path.
    Than what to do??i have also tried QDir::rootPath(); and also removed tilda sign but same ..returning false???

    if its was symbian i can go for C or D drive...but here,i dont knw ....

    Thanks
    Regards
    Viral Parmar

  6. #6
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: image saving on N900

    Tilde is the same as QDir::homePath();

  7. #7
    Registered User
    Join Date
    Jan 2009
    Location
    ભારત->ગુજરાત->ભાવનગર
    Posts
    279

    Re: image saving on N900

    Quote Originally Posted by divanov View Post
    Tilde is the same as QDir::homePath();
    ya your right..then Daniil what next?..i have tired all ..any other option ?
    Regards
    Viral Parmar

  8. #8
    Registered User
    Join Date
    Jan 2009
    Location
    ભારત->ગુજરાત->ભાવનગર
    Posts
    279

    Re: image saving on N900

    Quote Originally Posted by mind_freak View Post
    ya your right..then Daniil what next?..i have tired all ..any other option ?
    i want save image to my target device(n900) with image.save() function,What will be the appropriate string or path to write in save function ??
    Regards
    Viral Parmar

  9. #9
    Registered User
    Join Date
    Jan 2009
    Location
    ભારત->ગુજરાત->ભાવનગર
    Posts
    279

    Smile Re: [solved]image saving on N900

    problem solved
    image.save("/home/user/MyDocs/.images/n900.png");
    Regards
    Viral Parmar

Similar Threads

  1. Saving an image
    By chandran.biju007 in forum Mobile Java General
    Replies: 6
    Last Post: 2011-01-12, 18:54
  2. Saving Image
    By snehalpatil in forum Mobile Java General
    Replies: 5
    Last Post: 2010-07-27, 06:19
  3. black screen before displaying image in n900
    By babulamiet in forum Nokia N9
    Replies: 14
    Last Post: 2010-04-19, 12:32
  4. how to open an image from command prompt in n900
    By babulamiet in forum Nokia N9
    Replies: 2
    Last Post: 2010-04-03, 08:37
  5. saving an image
    By gaurav17281 in forum Symbian User Interface
    Replies: 1
    Last Post: 2003-06-16, 05:28

Posting Permissions

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