I am capturing video from device and then rendering it in a Dialog Box window using RenderStream function by using the following piece of code:
CHECK_HRESULT(InitializeGraph(enmCAPTURE_GRAPH, hParent, hPreview));
CHECK_HRESULT(AddFilterByName( CLSID_VideoInputDeviceCategory, bstrDeviceName, &pCaptureFilter));
CHECK_HRESULT(RenderStream(pCaptureFilter, PIN_CATEGORY_PREVIEW, MEDIATYPE_Video));
and it is working fine.
Now suppose i don't want to use RenderStream given above and get the same functionality.I want to connect the individual filters by AddFilter function.
Actually i am trying to do that but i am not getting anything.
In the project i have to implement zooming functionality.I want to know how can i add zooming functionality to that.There is already a EditorView class derived from CView.Should i have to change that so that the view class is derived from CZoomView.If true how can i change the dervied class of any class or is there any method to implement zoom functionality.