Click here to Skip to main content
15,897,704 members
Articles / Desktop Programming / MFC

Showing an animated image over running video

Rate me:
Please Sign up or sign in to vote.
3.38/5 (10 votes)
15 Sep 20065 min read 292.5K   5.1K   87  
An easy class which hides all nastiness of DirectShow, and helps in showing an image over playing video, and you can also control the image's transparency. Briefly described is how to do this all.
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by Video Manipulation.rc
//
#define IDM_ABOUTBOX                    0x0010
#define IDD_ABOUTBOX                    100
#define IDS_ABOUTBOX                    101
#define IDD_VIDEOMANIPULATION_DIALOG    102
#define IDR_MAINFRAME                   128
#define IDB_BITMAP1                     133
#define IDB_BITMAP_MAN                  133
#define IDC_BTN_SHOW_IMAGE              1001
#define IDC_BTN_HIDE_IMAGE              1002
#define IDC_IMAGE_LOADED                1003
#define IDC_BTN_PLAY                    1004
#define IDC_BTN_BROWSE                  1007
#define IDC_VIDEO_WINDOW                1010
#define IDC_EDIT_SLIDE                  1021
#define IDC_BTN_SLIDE                   1022
#define IDC_BUTTON1                     1023
#define IDC_PIC_TEMP                    1024
#define IDC_SLIDER_TRANS                1025

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        134
#define _APS_NEXT_COMMAND_VALUE         32771
#define _APS_NEXT_CONTROL_VALUE         1026
#define _APS_NEXT_SYMED_VALUE           101
#endif
#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Pakistan Pakistan
tanvon malik ( real name Tanveer Ahmad )I am a CNC Programmer, cnc setter, cnc operator. want to know about me visit my websites.
CNC Programming
CNC Manuals
DXF & GCode Files with Online Viewers
Komment.me

I been in Switzerland MAG former +FMS+ for CNC training.


Most interesting technologies I like COM MFC DirectShow such as filter development. I am from Pakistan.
Have worked on projects mostly related video capturing, video data processing and real time object tracking on videos. For these I have worked on projects which use "Open CV Library". Which is mostly used for capturing data and its processing.

Comments and Discussions