Thread: Transfer memory to DC

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

    Question Transfer memory to DC

    Hi,

    I am facing a problem for displaying an image for my custom format on the view.

    We have a custom file format for our purpose that stores the base image and delta images of the base image.
    I want to display some kind of animation using these data stored in file. For that I am using GDI's HDC. Using HDC I am coloring pixel of the view by putting loop of 800 * 600. The HDC is of created window by CFrameWnd.

    But I found very slow output for Base image. I am having the color data in memory (pixel map of whole view) so how can I directly transfer my memory data to HDC data. So that I don't have to use PutPixell function. (Some thing like Video memory in DOS).


    Thanks...
    Jatan ([email protected])

  2. #2
    Registered User
    Join Date
    Dec 2001
    Posts
    70
    Pixel by pixel method is very slow, use BiBlt (), StretchBlt () block transfer routines.

  3. #3
    Registered User
    Join Date
    Dec 2001
    Posts
    70
    Sorry, BitBlt ()

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. To find the memory leaks without using any tools
    By asadullah in forum C Programming
    Replies: 2
    Last Post: 05-12-2008, 07:54 AM
  2. Memory usage and memory leaks
    By vsanandan in forum C Programming
    Replies: 1
    Last Post: 05-03-2008, 05:45 AM
  3. Memory Leak Help
    By (TNT) in forum Windows Programming
    Replies: 3
    Last Post: 06-19-2006, 11:22 AM
  4. Is it necessary to write a specific memory manager ?
    By Morglum in forum Game Programming
    Replies: 18
    Last Post: 07-01-2002, 01:41 PM
  5. What's the best memory (RAM) type?
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 17
    Last Post: 12-15-2001, 12:37 AM