'Declaration Public Overloads Sub CopyFromStream( _ ByVal stream As System.IO.Stream, _ ByVal pitch As System.Integer, _ ByVal length As System.Integer, _ ByVal destinationArea As RectL _ )
public void CopyFromStream( System.IO.Stream stream, System.int pitch, System.int length, RectL destinationArea )
Parameters
- stream
- The stream to copy the data from.
- pitch
- The stride, or pitch, of the source bitmap stored in srcData. The stride is the byte count of a scanline (one row of pixels in memory). The stride can be computed from the following formula: pixel width * bytes per pixel + memory padding.
- length
- Length in bytes of the data to copy from the stream.
- destinationArea
- In the current bitmap, the upper-left corner of the area to which the region specified by srcRect is copied.
Return Value
If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.