Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 29
  1. #1
    Regular Contributor mit@indianic.com's Avatar
    Join Date
    Feb 2009
    Location
    Ahmedabad
    Posts
    51
    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
    Nokia Developer Champion savaj's Avatar
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034
    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 mit@indianic.com's Avatar
    Join Date
    Feb 2009
    Location
    Ahmedabad
    Posts
    51
    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
    Nokia Developer Champion savaj's Avatar
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034
    If you dont want to resize image than you have to implement your own logic for adding scrollbar.

  5. #5
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    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 mit@indianic.com's Avatar
    Join Date
    Feb 2009
    Location
    Ahmedabad
    Posts
    51
    Hi savaj,

    is there any example for Impliment the toolbar?

  7. #7
    Nokia Developer Champion savaj's Avatar
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034
    AFAIK no such example is available.

  8. #8
    Regular Contributor mit@indianic.com's Avatar
    Join Date
    Feb 2009
    Location
    Ahmedabad
    Posts
    51
    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
    Nokia Developer Champion savaj's Avatar
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034
    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
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    you forgot to derive your AppUi class from MImageResizerObserver.

  11. #11
    Regular Contributor mit@indianic.com's Avatar
    Join Date
    Feb 2009
    Location
    Ahmedabad
    Posts
    51
    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
    Nokia Developer Champion savaj's Avatar
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034
    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
    Nokia Developer Champion savaj's Avatar
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034
    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 mit@indianic.com's Avatar
    Join Date
    Feb 2009
    Location
    Ahmedabad
    Posts
    51
    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 wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    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.

Page 1 of 2 12 LastLast

Similar Threads

  1. How can resize the large size image for sending MMS.
    By Namdeo in forum Web Technologies and Multimedia Content- Web 技术和多媒体内容
    Replies: 1
    Last Post: 2008-01-09, 04:50
  2. Replies: 1
    Last Post: 2005-10-24, 09:57
  3. How to reduce image size
    By etamburini in forum Mobile Java General
    Replies: 1
    Last Post: 2004-06-14, 23:26
  4. encoding of image size on mms header
    By pautamo in forum General Messaging
    Replies: 1
    Last Post: 2002-08-15, 11:55
  5. 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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved