LEADTOOLS Multimedia (Leadtools.Multimedia assembly)

SetVideoFormatData Method

Show in webframe



A VideoInfoHeader structure containing the format data to set.
An optional array of RGBQUAD structures containing the palette information for video with 8 bits per pixel or less. Pass null for videos with more than 8 bits per pixel.
The number of elements from that should be used from the palette parameter. It should be less than palette.Length. Pass 0 if palette is null.
Copies data to the video format buffer.
Syntax
'Declaration
 
Public Sub SetVideoFormatData( _
   ByVal vih As VideoInfoHeader, _
   ByVal palette() As RGBQUAD, _
   ByVal paletteCount As Integer _
) 
'Usage
 
Dim instance As MediaType
Dim vih As VideoInfoHeader
Dim palette() As RGBQUAD
Dim paletteCount As Integer
 
instance.SetVideoFormatData(vih, palette, paletteCount)
public void SetVideoFormatData( 
   VideoInfoHeader vih,
   RGBQUAD[] palette,
   int paletteCount
)
public:
void SetVideoFormatData( 
   VideoInfoHeader vih,
   array<RGBQUAD>^ palette,
   int paletteCount
) 

Parameters

vih
A VideoInfoHeader structure containing the format data to set.
palette
An optional array of RGBQUAD structures containing the palette information for video with 8 bits per pixel or less. Pass null for videos with more than 8 bits per pixel.
paletteCount
The number of elements from that should be used from the palette parameter. It should be less than palette.Length. Pass 0 if palette is null.
Remarks
Copies data to the video format buffer. This is a helper method which internally sets the unmanaged memory size of the VideoInfoHeader structure and then calls MediaType.SetFormatData marshalling the structure to a byte array. If the method fails, an error is raised. For more information, refer to the Error Codes.
Requirements

Target Platforms

See Also

Reference

MediaType Class
MediaType Members

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.

Leadtools.Multimedia requires a Multimedia or Multimedia Suite license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features