次の方法で共有


CBaseControlVideo::GetImageSize (Compact 2013)

3/26/2014

Retrieves video image size information.

Syntax

HRESULT GetImageSize(
  VIDEOINFOHEADER* pVideoInfo,
  long* pBufferSize,
  RECT* pSourceRect
);

Parameters

  • pBufferSize
    Size of the video buffer.
  • pSourceRect
    Rectangle dimensions of the source video.

Return Value

Returns an HRESULT value.

Remarks

This member function is a helper function used for creating memory image renderings of DIB images.

It is called from the base class implementation of CBaseControlVideo::GetCurrentImage when a null pVideoImage parameter is passed to that member function.

As a result, this member function constructs and returns a VIDEOINFOHEADER structure, using the information in pBufferSize and pSourceRect.

Requirements

Header

dshow.h,
Streams.h

Library

ole32.lib,
Ole32auth.lib,
Strmbase.lib,
Strmiids.lib,
uuid.lib

See Also

Reference

CBaseControlVideo Class