Discussion Board

Results 1 to 13 of 13
  1. #1
    Regular Contributor dr.nokia's Avatar
    Join Date
    Feb 2010
    Posts
    68
    Dear Experts ,

    Is that possible to load JPEG image using CFBsBitmap ? or only I have to laod Bimap ?

  2. #2
    Nokia Developer Champion not_dying's Avatar
    Join Date
    Feb 2009
    Location
    India
    Posts
    813
    You can use jpeg images in your application by converting them into CFbsBitmap type objects with the help of CImageDecoder API.

  3. #3
    Nokia Developer Champion somnathbanik's Avatar
    Join Date
    Dec 2008
    Posts
    2,276
    try this example https://www.forum.nokia.com/info/sw....r_Example.html it displays many types of images using CImageDecoder API

  4. #4
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,673
    there would of course be simpler examples awailable in the wiki, like this one: http://wiki.forum.nokia.com/index.ph...Symbian_bitmap

  5. #5
    Regular Contributor dr.nokia's Avatar
    Join Date
    Feb 2010
    Posts
    68
    Quote Originally Posted by symbianyucca View Post
    there would of course be simpler examples awailable in the wiki, like this one: http://wiki.forum.nokia.com/index.ph...Symbian_bitmap
    Ok I understand the code I done similar to it but I generated GUI application , shall I write the header to image_readerAppui.h? or create separate header file ?


    I mean image_reader.h should written in image_readerAppui.h?

  6. #6
    Nokia Developer Champion not_dying's Avatar
    Join Date
    Feb 2009
    Location
    India
    Posts
    813
    Quote Originally Posted by dr.nokia View Post
    Ok I understand the code I done similar to it but I generated GUI application , shall I write the header to image_readerAppui.h? or create separate header file ?


    I mean image_reader.h should written in image_readerAppui.h?
    See, you have your image_readerAppui.h file. Keep it separate.

    Now you should make a separate file image_reader.h ( and .cpp). You can make an instance of image_reader's class (defined in image_reader.h) in image_readerAppui.h file and use the functions provided by image_reader class.

  7. #7
    Regular Contributor dr.nokia's Avatar
    Join Date
    Feb 2010
    Posts
    68
    Quote Originally Posted by not_dying View Post
    See, you have your image_readerAppui.h file. Keep it separate.

    Now you should make a separate file image_reader.h ( and .cpp). You can make an instance of image_reader's class (defined in image_reader.h) in image_readerAppui.h file and use the functions provided by image_reader class.
    So you mean I have to create separate header and .cpp and call the functions in Appui.cpp ??

  8. #8
    Nokia Developer Champion not_dying's Avatar
    Join Date
    Feb 2009
    Location
    India
    Posts
    813
    Quote Originally Posted by dr.nokia View Post
    So you mean I have to create separate header and .cpp and call the functions in Appui.cpp ??
    Absolutely right.

  9. #9
    Regular Contributor dr.nokia's Avatar
    Join Date
    Feb 2010
    Posts
    68
    Quote Originally Posted by not_dying View Post
    Absolutely right.
    To make sure that we are on the same boat

    For example I have image_read.h and image_read.cpp

    On image_read.cpp there function called void foo();

    In Image_readerAppui.h and image_readAppui.cpp I must include the image_read.h such as #include<Image_read.h>

    In Image_readAppui.cpp call the cuntion such : foo();

    I'm right ?

  10. #10
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,673
    I would suggest you on reading some basics of object orientation and C++. Basically you would declare the class in the image_read.h, implement it in image_read.cpp for example. And then you would cnstruct the class instance and utilize the functions of the class through that instance. And in place where you use the class, you would need to include the header, so the compiler would be able to find it.

  11. #11
    Regular Contributor dr.nokia's Avatar
    Join Date
    Feb 2010
    Posts
    68
    Quote Originally Posted by symbianyucca View Post
    I would suggest you on reading some basics of object orientation and C++. Basically you would declare the class in the image_read.h, implement it in image_read.cpp for example. And then you would cnstruct the class instance and utilize the functions of the class through that instance. And in place where you use the class, you would need to include the header, so the compiler would be able to find it.
    I know how to program in C++ and make header file in separate of the source file , But when I generate the GUI application it's confusing where I can call or invoke the functions and so on Im really lost now

  12. #12
    Regular Contributor dr.nokia's Avatar
    Join Date
    Feb 2010
    Posts
    68
    Quote Originally Posted by symbianyucca View Post
    I would suggest you on reading some basics of object orientation and C++. Basically you would declare the class in the image_read.h, implement it in image_read.cpp for example. And then you would cnstruct the class instance and utilize the functions of the class through that instance. And in place where you use the class, you would need to include the header, so the compiler would be able to find it.
    OOP c++ I have no problem with that , all the ideas are clear but the problem is when I generate the GUI many examples showing ConstructL and NewL() all of them are confusing me :s

  13. #13
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,673
    basically where ever you would want to use the functions of a class, you would need to contruct a instance of that class, and then use that instance to execute the functions of that class, rather standard object orientation really.

Similar Threads

  1. Question about VolumeControl class
    By iosoft in forum Mobile Java General
    Replies: 2
    Last Post: 2010-03-11, 09:41
  2. Question about CFbsBitmap
    By zhangwei_Nirvana in forum Symbian C++
    Replies: 1
    Last Post: 2008-03-19, 10:49
  3. Question about scaling one bitmap and copy it into a new CFbsBitmap
    By Casper1314 in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2007-01-29, 02:59
  4. Replies: 0
    Last Post: 2003-12-07, 16:06
  5. Question Regarding Message Class
    By asheynkman in forum General Messaging
    Replies: 0
    Last Post: 2003-06-02, 19:57

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