Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Ask about drawing the client

Ask about drawing the client

Scheduled Pinned Locked Moved C / C++ / MFC
questiongraphicsperformanceannouncement
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    zouchao1112
    wrote on last edited by
    #1

    A camera and a frame grabber have been set up. And the frame grabber has been installed in PCI. When I use continuous grab mode, the image data are written into a specified memory continuously and cover the old data. Then how can I update the image from the memory to the client screen since I have tried calling StretchDIBits in OnDraw(), but I find it is not efficient with the client area twinkling frequently. Is there any efficient way like copying the data directly to the display memory? How? Thanks

    J E 2 Replies Last reply
    0
    • Z zouchao1112

      A camera and a frame grabber have been set up. And the frame grabber has been installed in PCI. When I use continuous grab mode, the image data are written into a specified memory continuously and cover the old data. Then how can I update the image from the memory to the client screen since I have tried calling StretchDIBits in OnDraw(), but I find it is not efficient with the client area twinkling frequently. Is there any efficient way like copying the data directly to the display memory? How? Thanks

      J Offline
      J Offline
      Justin Tay
      wrote on last edited by
      #2

      Override OnEraseBackground to do nothing.

      1 Reply Last reply
      0
      • Z zouchao1112

        A camera and a frame grabber have been set up. And the frame grabber has been installed in PCI. When I use continuous grab mode, the image data are written into a specified memory continuously and cover the old data. Then how can I update the image from the memory to the client screen since I have tried calling StretchDIBits in OnDraw(), but I find it is not efficient with the client area twinkling frequently. Is there any efficient way like copying the data directly to the display memory? How? Thanks

        E Offline
        E Offline
        erkanina
        wrote on last edited by
        #3

        For this kind of application DirectDraw is the best solution, With DirectDraw; Less PCI bandwith consumption. You can manipulate video memory directly in various video format. You can solve flickering/twinkling by Double Buffering, Waiting Vertical SYNC.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups