×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    16

    Bitmap image with offset

    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
    Join Date
    Oct 2008
    Posts
    16

    Re: Bitmap image with offset

    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
    Join Date
    Mar 2007
    Posts
    119

    Re: Bitmap image with offset

    Please post it.

  4. #4
    Registered User
    Join Date
    Oct 2008
    Posts
    16

    Re: Bitmap image with offset

    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. Regarding BMCONV
    By sanah007 in forum Symbian
    Replies: 2
    Last Post: 2009-05-26, 12:47
  2. 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
  3. 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
  4. 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
  •  
×