×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Jul 2005
    Posts
    168

    problem on copy from a bitmap and draw to the screen

    Hi,
    I have a CFbsBitmap, iBmp, and I can draw it to the screen with DrawBitmap.
    But when I copy a TRect of area from this bitmap and put these pixels to a new CFbsBitmap and try to draw to the screen, the copied area is drawn much bigger than it is.
    Can you help?

  2. #2
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Tampere, Finland
    Posts
    58

    Re: problem on copy from a bitmap and draw to the screen

    Hmm... area size depends on your parameters or how are you drawing it?

    virtual void DrawBitmap(const TRect& aDestRect, const CFbsBitmap* aSource);

    "The bitmap is compressed/stretched to fit the specified rectangle. Note that if the twips value of the bitmap is not set then nothing is drawn (this is the default situation)"

    "This member function uses the bitmap's size in pixels and does a stretch/compress blit using a linear DDA"

Similar Threads

  1. Problem with eglSwapBuffers and heap corruption
    By greatape in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2007-05-24, 03:35
  2. draw bitmap in the whole screen
    By MMorpheus in forum Symbian User Interface
    Replies: 5
    Last Post: 2005-12-28, 08:41
  3. unable to copy bitmap to back buffer. please help
    By itenel in forum Symbian User Interface
    Replies: 3
    Last Post: 2004-09-30, 06:56
  4. Replies: 2
    Last Post: 2004-08-04, 09:48
  5. Can't copy bitmap to back buffer. help please
    By itenel in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2004-04-06, 08:51

Posting Permissions

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