IVideoMixer::SetOutputSize
From AVObjects Knowledge Base
		(Difference between revisions)
		
		
 (→Syntax)  | 
		|||
| Line 10: | Line 10: | ||
</cpp>  | </cpp>  | ||
| − | <  | + | <cpp>  | 
#include <iostream> // provides std::cout  | #include <iostream> // provides std::cout  | ||
#include <ostream>  // provides std::ostream and std::endl  | #include <ostream>  // provides std::ostream and std::endl  | ||
| Line 19: | Line 19: | ||
     return 0;  |      return 0;  | ||
}  | }  | ||
| − | </  | + | </cpp>  | 
===Parameters===  | ===Parameters===  | ||
Revision as of 13:54, 25 July 2007
The SetOutputSize method sets the output frame size. See IVideoMixer for other methods.
Contents | 
Syntax
<cpp> HRESULT SetOutputSize(
[in] DWORD _dwWidth, [in] DWORD _dwHeight
); </cpp>
<cpp>
- include <iostream> // provides std::cout
 - include <ostream> // provides std::ostream and std::endl
 
int main() {
std::cout << "Hello, world!" << std::endl; return 0;
} </cpp>
Parameters
_dwWidth
[in] Sets the width of the output frame.
_dwHeight
[in] Sets the height of the output frame.
Return Values
| Return code | Description | 
| S_OK | Success | 
| E_OUTOFMEMORY | Insufficient memory | 
| E_POINTER | Null pointer argument | 
Remarks
If _dwWidth and _dwHeight are zero, default output size will be set. (Default output size is the size of the maximum input frame.)