je souhaite traduire la ligne de commande en C++ vers du visual basic vb.net 2010
avait vous une idée?
merci d'avance




GetCurrentImage
Gets the data corresponding to the image currently being displayed.

Syntax
HRESULT GetCurrentImage(int theFormat, [C++]
VARIANT* theBuffer,
LONG* theBufferSize
);

Parameters

theFormat
Identifier specifiying the format of the image data. Values available are: 0 = JPEG, 1 = BMP (defined in the AMC_IMAGE_FORMAT enum in the type library).
theBuffer
The buffer where the image data is returned.
theBufferSize
Size of the image data buffer returned.
Return Value
Returns an HRESULT value. Possible values include the following:

Value Description
S_OK Successful call.
E_INVALIDARG One or more arguments are invalid.
E_FAIL Call failed because of too many simultaneous calls.

Remarks
This method returns the currently displayed image, and is useful to get occasional snapshots from a live stream. However, it is not intended to be used for capturing a complete image stream, since it cannot used in a way that can guarantee that all images are acquired. For recording purposes use StartRecordMedia.

If the format specified is BMP, the image data buffer is returned as a byte array with a BITMAPINFOHEADER structure followed immediately by the bitmap data in RGB24 format. Note that this buffer would not constitute a valid .BMP file if saved to a file. A BITMAPFILEHEADER structure is also required. If your purpose is to save the image to a file use SaveCurrentImage instead. This method will generate a proper .BMP file.

See Also