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. DirectShow ...How do i overlay a bitmap pic over a video source?

DirectShow ...How do i overlay a bitmap pic over a video source?

Scheduled Pinned Locked Moved C / C++ / MFC
questiongraphics
2 Posts 2 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.
  • U Offline
    U Offline
    User 404410
    wrote on last edited by
    #1

    Hi,, Just wondering if anyone knows how do i overlay a bitmap or draw a frame onto a video source... I've created a Histogram filter, which inherites from CTransform filter. HRESULT CHistogram::Transform(IMediaSample *pIn, IMediaSample *pOut)

    A 1 Reply Last reply
    0
    • U User 404410

      Hi,, Just wondering if anyone knows how do i overlay a bitmap or draw a frame onto a video source... I've created a Histogram filter, which inherites from CTransform filter. HRESULT CHistogram::Transform(IMediaSample *pIn, IMediaSample *pOut)

      A Offline
      A Offline
      Andrew Walker
      wrote on last edited by
      #2

      Retrieve a pointer to the input bitmap data by using IMediaSample::GetPointer and then you can convert that to a bitmap and draw with an API. Alternatively, you can write your own simple draw routines by moving around the buffer and changing individual pixels.


      If you can keep you head when all about you Are losing theirs and blaming it on you; If you can dream - and not make dreams your master; If you can think - and not make thoughts you aim; Yours is the Earth and everything that's in it. Rudyard Kipling

      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