PictureMediaBufferCreateFromTemplate Method (Int32, Int32, PictureFormat) |
Creates a PictureMediaBuffer given resolution and format. The OffsetBuffer will also be allocated.
Namespace: StreamCodersAssembly: MediaBase (in MediaBase.dll) Version: 2.0.5.0 (2.0.5.0)
Syntax public static PictureMediaBuffer CreateFromTemplate(
int width,
int height,
PictureFormat format
)
Public Shared Function CreateFromTemplate (
width As Integer,
height As Integer,
format As PictureFormat
) As PictureMediaBuffer
public:
static PictureMediaBuffer^ CreateFromTemplate(
int width,
int height,
PictureFormat format
)
static member CreateFromTemplate :
width : int *
height : int *
format : PictureFormat -> PictureMediaBuffer
Parameters
- width
- Type: SystemInt32
Width of picture.
- height
- Type: SystemInt32
Height of picture.
- format
- Type: StreamCodersPictureFormat
Format of Picture.
Return Value
Type:
PictureMediaBuffer
Returns a new instance of PictureMediaBuffer.
See Also