Thread: DrawDIBDraw Problem

  1. #1
    Registered User
    Join Date
    Nov 2002
    Posts
    5

    Talking DrawDIBDraw Problem

    Dear friends

    i am using DrawDIBDraw function to draw a large bitmap. As a result, the Bitmap is drawn for the fraction of a second and then it disappears. I am using following code .....


    HDRAWDIB hdd = DrawDibOpen();
    DrawDibDraw(hdd, hPaintDC,0,0,BITMAP_WIDTH,BITMAP_HEIGHT,& m_BitmapInfo,m_pBits,0,0,BITMAP_WIDTH,BITMAP_HEIGH
    T,DDF_HALFTONE);
    DrawDibClose(hdd);

    how can i solve the problem . why it disappears.

    regards

  2. #2
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Don't post the same question more than once. And for the record the reason the picture will only show momentarily is because even a mono image as big as your image will be 241 megs! I assume you are using a paletted image (that was my assumption in the pm). If you are using a 24bit image then we are taking about a 4gig image. An image this large is just an enormous drain on system resources and windows is reacting to it in an expected way. Break your image up a bit (even at 1024x1024 there would be nearly 2000 images).

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 11:22 AM
  2. Someone having same problem with Code Block?
    By ofayto in forum C++ Programming
    Replies: 1
    Last Post: 07-12-2007, 08:38 AM
  3. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 02:51 PM
  4. WS_POPUP, continuation of old problem
    By blurrymadness in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 06:54 PM
  5. beginner problem
    By The_Nymph in forum C Programming
    Replies: 4
    Last Post: 03-05-2002, 05:46 PM