Creates and initializes new AviWriter class instance. You set all possible AVI writer parameters here. It also opens this writer on specified file.
Namespace:
Aurigma.GraphicsMill.Codecs
Assembly:
Aurigma.GraphicsMill.Codecs.AviProcessor (in Aurigma.GraphicsMill.Codecs.AviProcessor.dll)
Public Sub New ( _ fileName As String, _ width As Integer, _ height As Integer, _ quality As Integer, _ framesPerSecond As Integer, _ compressorHandler As Integer, _ showOptionDialog As Boolean, _ optionDialogParent As IntPtr, _ keyFrameRate As Integer, _ bytesPerSecond As Integer _ )
public AviWriter( string fileName, int width, int height, int quality, int framesPerSecond, int compressorHandler, bool showOptionDialog, IntPtr optionDialogParent, int keyFrameRate, int bytesPerSecond )
Type: System.String
Name of the file to open the writer on.Type: System.Int32
An integer value which specifies the width of the AVI you need to get. If 0 is specified, the width will be taken from the first frame added to the writer.Type: System.Int32
An integer value which specifies the height of the AVI you need to get. If 0 is specified, the height will be taken from the first frame added to the writer.Type: System.Int32
Value in range [0, 10000] which specifies the quality of the AVI file. Higher values means better quality (but larger file size).
The quality setting is meaningful not for each AVI compressor. That's why it may be disregarded depending on the value of the CompressorHandler property.
Type: System.Int32
An integer value which specifies how many frames should be played in one second.Type: System.Int32
An integer number containing the compressor handler.Type: System.Boolean
A Boolean value which whether to display the options dialog to specify the writer object settings.Type: System.IntPtr
A value which contains the HWND of the options dialog parent window.Type: System.Int32
An integer value which specifies the key frame value.
This value is ignored by most compressors. It is used by those compressors which are based on MPEG algorithm (e.g. DivXPro5, XvidMpeg4, etc).
Type: System.Int32
An integer value which specifies the amount of bytes per second.
This value is ignored by most compressors. It is used by those compressors which are based on MPEG algorithm (e.g. DivXPro5, XvidMpeg4, etc).
When you open the writer with this constructor, you will not be able to change the writer settings (such as dimensions, compressor settings, frames per second, etc). So use this constructor only if you are sure that you need not change the writer parameters. Otherwise you should: