Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User ramunla's Avatar
    Join Date
    Oct 2008
    Posts
    16
    Hi all!

    Anybody knows how to load an image from bitmap file with some offset?

    I'am trying to load image from "filename" and don't want to load the whole image.
    Or is it possible to cut a picture from the image when it has been initialized already?

    iDisplayMode = aDisplayMode;
    TBuf8<50> mimeType;
    CImageDecoder::GetMimeTypeFileL(iFs, filename, mimeType);
    CImageDecoder* imageDecoder = CImageDecoder::FileNewL(iFs,filename, mimeType );

    iBitmap->Create( imageDecoder->FrameInfo().iOverallSizeInPixels, iDisplayMode);


    Thanks
    in advance
    Last edited by ramunla; 2009-03-17 at 15:37.

  2. #2
    Registered User ramunla's Avatar
    Join Date
    Oct 2008
    Posts
    16
    Quote Originally Posted by ramunla View Post
    Hi all!

    Anybody knows how to load an image from bitmap file with some offset?

    I'am trying to load image from "filename" and don't want to load the whole image.
    Or is it possible to cut a picture from the image when it has been initialized already?

    iDisplayMode = aDisplayMode;
    TBuf8<50> mimeType;
    CImageDecoder::GetMimeTypeFileL(iFs, filename, mimeType);
    CImageDecoder* imageDecoder = CImageDecoder::FileNewL(iFs,filename, mimeType );

    iBitmap->Create( imageDecoder->FrameInfo().iOverallSizeInPixels, iDisplayMode);


    Thanks
    in advance
    I've found solution!!!!!!!!!!!!!!!

  3. #3
    Regular Contributor alav's Avatar
    Join Date
    Mar 2007
    Posts
    119
    Please post it.

  4. #4
    Registered User ramunla's Avatar
    Join Date
    Oct 2008
    Posts
    16
    Quote Originally Posted by alav View Post
    Please post it.
    copyBitmap=new(ELeave)CFbsBitmap;
    copyBitmap->Create(capturedBitmap->SizeInPixels(),capturedBitmap->DisplayMode());
    CFbsBitmapDevice *device=CFbsBitmapDevice::NewL(copyBitmap);
    CFbsBitGc *gc;
    device->CreateContext(gc);
    gc->BitBlt(TPoint(0,0),capturedBitmap);
    delete gc;
    delete device;

Similar Threads

  1. [moved] Theme Studio Error
    By TalJ in forum Themes/Carbide.ui
    Replies: 2
    Last Post: 2009-09-06, 03:39
  2. Regarding BMCONV
    By sanah007 in forum Symbian C++
    Replies: 2
    Last Post: 2009-05-26, 12:47
  3. problem when importing from carbide c++ to vs 2003!
    By misfit.physics in forum Symbian Tools & SDKs
    Replies: 12
    Last Post: 2008-02-19, 09:45
  4. how to cut some part of Image
    By mshouab in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2006-08-04, 09:05
  5. Nokia Image Converter
    By davidpurdie in forum General Development Questions
    Replies: 0
    Last Post: 2004-02-18, 15:31

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