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