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. How to draw ruuber band rectangle on live video?

How to draw ruuber band rectangle on live video?

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++cssgraphicsgame-dev
3 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
    uresh hanmugam
    wrote on last edited by
    #1

    Hi, I'm Developing a live video streaming application in vc++ using DirectX VideoMixingRenderer filter. I can able to draw rubber band rectangle on live video using DirectX SetAlphaBitmap() through my mouse move. if my video frame size(4CIF) is greater than my picture box control size, it's working fine. Suppose, my video frame size(CIF) is less than my picture box control size, 1) only 3 sides of the rectangle can be visible. 2) sometimes 2 sides only can be visible. 3) Above two context has been happen randomly. Please, somebody help me out from this issue. Thanx in advance, Regards Surez

    F 1 Reply Last reply
    0
    • U uresh hanmugam

      Hi, I'm Developing a live video streaming application in vc++ using DirectX VideoMixingRenderer filter. I can able to draw rubber band rectangle on live video using DirectX SetAlphaBitmap() through my mouse move. if my video frame size(4CIF) is greater than my picture box control size, it's working fine. Suppose, my video frame size(CIF) is less than my picture box control size, 1) only 3 sides of the rectangle can be visible. 2) sometimes 2 sides only can be visible. 3) Above two context has been happen randomly. Please, somebody help me out from this issue. Thanx in advance, Regards Surez

      F Offline
      F Offline
      freakyit
      wrote on last edited by
      #2

      hi, how would it be to draw the ruuber band rectangle in the video frame or change the size of the picture box that is fits with the video frame size. bless..

      U 1 Reply Last reply
      0
      • F freakyit

        hi, how would it be to draw the ruuber band rectangle in the video frame or change the size of the picture box that is fits with the video frame size. bless..

        U Offline
        U Offline
        uresh hanmugam
        wrote on last edited by
        #3

        I have created a bitmap for picture box's DC and draw the rectangle on it. Whenever mouse move, new coordinates has been generated and redraw the rectangle. Finally, attached my custom bitmap into directx frame using SetAlphaBitmap(). The Custom bitmap not originally attached to the video frame, it has been attached when a video frame has ready to visible. I would like to render different frame size of streams from IP-camera, mean while I would like to maintain my picture box size as static.

        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