×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 29
  1. #1
    Regular Contributor
    Join Date
    Feb 2009
    Location
    Ahmedabad
    Posts
    51

    Image Size Issue

    Hi friends,

    I am working on UI Based Application (Carbide C++ - S60) and i have displayed image one by one as per user touch the screen.

    currently my image can't fit on screen so what is the perfect size of image that i need.

    somebody help me on that.

    Thanks.

  2. #2
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: Image Size Issue

    Quote Originally Posted by mit@indianic.com View Post
    Hi friends,

    I am working on UI Based Application (Carbide C++ - S60) and i have displayed image one by one as per user touch the screen.

    currently my image can't fit on screen so what is the perfect size of image that i need.

    somebody help me on that.

    Thanks.
    Instead of hardcoding screen size, i will suggest you to resize image accordingly screen resolution. Check CBitmapScaler API in DOC.

    Also check this article in wiki.
    http://wiki.forum.nokia.com/index.ph...age_in_Symbian

  3. #3
    Regular Contributor
    Join Date
    Feb 2009
    Location
    Ahmedabad
    Posts
    51

    Re: Image Size Issue

    thanks for your quick reply.

    but suppose i have long image then it will not display properly so that i need to Scroll
    what you suggest me about that ?

    Currently i am using 360 X 640 Image Size but my about us image size too long.

  4. #4
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: Image Size Issue

    If you dont want to resize image than you have to implement your own logic for adding scrollbar.

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,692

    Re: Image Size Issue

    Even if you want to hardcode sizes, you should simply check it in runtime once (and log/display it). Knowing the size, you could create a properly sized image for the given device then.

  6. #6
    Regular Contributor
    Join Date
    Feb 2009
    Location
    Ahmedabad
    Posts
    51

    Re: Image Size Issue

    Hi savaj,

    is there any example for Impliment the toolbar?

  7. #7
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: Image Size Issue

    AFAIK no such example is available.

  8. #8
    Regular Contributor
    Join Date
    Feb 2009
    Location
    Ahmedabad
    Posts
    51

    Re: Image Size Issue

    i am trying to impliment that resize code into my project but i could not able to Create object of ImageResizer Class

    i have follow below steps:
    - Add ImageResizer.h
    - Add ImageResizer.cpp
    - Added 2 Library

    and trying to create object of ImageResizer class in my UI.CpP Class it will gives me error

    iImageResizer = new (ELeave) CImageResizer(this);

    Errors:

    (1) function call '[CImageResizer].CImageResizer({lval} CTAppUi *)' does not match
    (2) 'CImageResizer::CImageResizer(MImageResizerObserver *)'
    (3) 'CImageResizer::CImageResizer(const CImageResizer &)'

  9. #9
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: Image Size Issue

    Quote Originally Posted by mit@indianic.com View Post
    i am trying to impliment that resize code into my project but i could not able to Create object of ImageResizer Class

    i have follow below steps:
    - Add ImageResizer.h
    - Add ImageResizer.cpp
    - Added 2 Library

    and trying to create object of ImageResizer class in my UI.CpP Class it will gives me error

    iImageResizer = new (ELeave) CImageResizer(this);

    Errors:

    (1) function call '[CImageResizer].CImageResizer({lval} CTAppUi *)' does not match
    (2) 'CImageResizer::CImageResizer(MImageResizerObserver *)'
    (3) 'CImageResizer::CImageResizer(const CImageResizer &)'
    Have you derived your Ui class form MImageResizerObserver ??? You have to implement observer MImageResizerObserver, and override its method ResizeComplete().

  10. #10
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: Image Size Issue

    you forgot to derive your AppUi class from MImageResizerObserver.

  11. #11
    Regular Contributor
    Join Date
    Feb 2009
    Location
    Ahmedabad
    Posts
    51

    Re: Image Size Issue

    Quote Originally Posted by skumar_rao View Post
    you forgot to derive your AppUi class from MImageResizerObserver.
    I am trying to derive this [MImageResizerObserver] class in my UI but i am getting the below error:
    illegal use of abstract class ('MImageResizerObserver::ResizeComplete(const int &)')

    My code:

    class CTAppUi : public CAknAppUi, MImageResizerObserver
    {
    public:
    CImageResizer* iImageResizer;
    }

  12. #12
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: Image Size Issue

    Quote Originally Posted by mit@indianic.com View Post
    I am trying to derive this [MImageResizerObserver] class in my UI but i am getting the below error:
    illegal use of abstract class ('MImageResizerObserver::ResizeComplete(const int &)')

    My code:

    class CTAppUi : public CAknAppUi, MImageResizerObserver
    {
    public:
    CImageResizer* iImageResizer;
    }
    Have you implemented its pure virtual function in your CTAppUi ???

  13. #13
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: Image Size Issue

    Quote Originally Posted by savaj
    Have you derived your Ui class form MImageResizerObserver ??? You have to implement observer MImageResizerObserver, and override its method ResizeComplete().
    Its look like you have not readed all reply carefully.

  14. #14
    Regular Contributor
    Join Date
    Feb 2009
    Location
    Ahmedabad
    Posts
    51

    Re: Image Size Issue

    Quote Originally Posted by savaj View Post
    Its look like you have not readed all reply carefully.
    Thanks for your support.

    Sorry for my miss communication but i am new in the symbian so where i am wrong i am not understand.

    can u please send me here sample code if Possible:

  15. #15
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,692

    Re: Image Size Issue

    It is hard to decide what you have now.

    If you have
    "class CTAppUi : public CAknAppUi, MImageResizerObserver"
    you can not have
    "(1) function call '[CImageResizer].CImageResizer({lval} CTAppUi *)' does not match
    (2) 'CImageResizer::CImageResizer(MImageResizerObserver *)'"
    because CTAppUi would be an MImageResizerObserver, thus CTAppUi* ("this") would be an MImageResizerObserver* then.

    And if you have
    "illegal use of abstract class ('MImageResizerObserver::ResizeComplete(const int &)')"
    you have been already given the step you should do, implement the referred method.

Similar Threads

  1. Replies: 1
    Last Post: 2005-10-24, 09:57
  2. How to reduce image size
    By etamburini in forum Mobile Java General
    Replies: 1
    Last Post: 2004-06-14, 23:26
  3. encoding of image size on mms header
    By pautamo in forum General Messaging
    Replies: 1
    Last Post: 2002-08-15, 11:55
  4. Largest Image size
    By e4bdevelop in forum General Messaging
    Replies: 1
    Last Post: 2002-08-02, 09:13

Posting Permissions

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