|
Copyright © 2005-2008 MultiMedia Soft
Return to Table of contents
|
|
[Visual Basic]
Public Function CreateFileBitmapView (
nPlayerIndex as Int16,
nStartPos as Int32,
nEndPos as Int32,
nBitmapWidth as Int32,
nBitmapHeight as Int32,
nWaveformType as enumWaveformTypes,
strPathname as string
) as enumErrorCodes
|
|
[C#]
public enumErrorCodes CreateFileBitmapView (
Int16 nPlayerIndex,
Int32 nStartPos,
Int32 nEndPos,
Int32 nBitmapWidth,
Int32 nBitmapHeight,
enumWaveformTypes nWaveformType,
string strPathname
);
|
|
[C++]
public: enumErrorCodes CreateFileBitmapView (
Int16 nPlayerIndex,
Int32 nStartPos,
Int32 nEndPos,
Int32 nBitmapWidth,
Int32 nBitmapHeight,
enumWaveformTypes nWaveformType,
string strPathname
);
|
|
Parameter
|
Description
| ||||||||||||
|
|
| ||||||||||||
|
nPlayerIndex
|
Number representing the zero-based index of the player that will use the Waveform
| ||||||||||||
|
nStartPos
|
Number representing the sound's position, expressed in milliseconds, where the waveform visualization begins.
The value 0 represents the sound's beginning.
| ||||||||||||
|
nEndPos
|
Number representing the sound's position, expressed in milliseconds, where the waveform visualization ends.
The value -1 represents the sound's end.
| ||||||||||||
|
nBitmapWidth
|
Number representing the generated bitmap width, expressed in pixels. A value of -1 indicates no width constraints: in this case the control will generate a bitmap large enough in order to contain the full sound's waveform.
| ||||||||||||
|
nBitmapHeight
|
Number representing the generated bitmap height, expressed in pixels.
| ||||||||||||
|
nWaveformType
|
The type of rendered waveform, related to the sound's channels.
Supported values are the following:
| ||||||||||||
|
strPathname
|
String containing the aboslute pathname of the BMP file where the waveform will be saved.
|
|
Value
|
Meaning
|
|
|
|
|
Negative value
|
An error occurred (see the LastError property for further error details)
|
|
enumErrorCodes.NOERROR (0)
|
The method call was successful and the waveform's bitmap was saved inside the BMP file indicated by the strPathname parameter.
|