×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Oct 2006
    Posts
    2

    Problem modifying bitmap returned from ImageReady()

    Hello,
    I want to modify the bitmap returned from ImageReady() used when I make a capture from the camera.
    The problem that I tried a direct modification to the bitmap, on the compilation everything is good, but on the device the application abort.
    Even I tried to make a copy of the bitmap returned to another bitmap and tried to access it, I had the same problem! Can anyone suggest me a solution ? I’m programming on a S60, it’s nokia N70.
    Thank you

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,572

    Re: Problem modifying bitmap returned from ImageReady()

    What do you mean on "direct modification"? If you are trying to modify a bitmap using DataAddress, remember to LockHeap prior to getting the address, and UnlockHeap after modification.

  3. #3
    Registered User
    Join Date
    Oct 2006
    Posts
    2

    Re: Problem modifying bitmap returned from ImageReady()

    i already lock and unlock the heap after the modification, still i can't modify the bitmap.
    i mean by direct modification:
    in the method Imageready(CFbsBitmap* aBitmap,HBufC8* aData,TInt aError)
    i copy the reference of aBitmap to iBitmap,(i work with ibitmap) then i lock the heap, i modify the bitmap by accessing the dataaddress to modify and then i unlock the heap

    when i modify, the application crash!
    Last edited by concept85; 2006-10-05 at 16:09.

Similar Threads

  1. 256 bitmap is bigger than 16bit bitmap
    By dotcdotc in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2005-01-11, 05:57
  2. What is the real problem to receive data calls with Nokia TDMA cell modem?
    By jackal_jr in forum PC Suite API and PC Connectivity SDK
    Replies: 0
    Last Post: 2002-12-04, 16:05
  3. problem w/ transparent png bitmap and manipulation
    By Dess in forum Mobile Java General
    Replies: 1
    Last Post: 2002-07-16, 13:09
  4. PJava runtime problem within Nokia 9210, Hrlp~!
    By Nokia_Archive in forum PersonalJava
    Replies: 1
    Last Post: 2002-05-28, 13:15

Posting Permissions

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