This documentation is for the old version. Go to the latest Graphics Mill docs

StreamWrapper.CopyTo Method

Copies a specified number of bytes from the current seek pointer in the stream to the current seek pointer in another stream.

Namespace: Aurigma.GraphicsMill
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

Visual Basic
Public Overridable Sub CopyTo ( _
	pstm As IStream, _
	cb As Long, _
	pcbRead As IntPtr, _
	pcbWritten As IntPtr _
)
C#
public virtual void CopyTo(
	IStream pstm,
	long cb,
	IntPtr pcbRead,
	IntPtr pcbWritten
)

Parameters

pstm

Type: System.Runtime.InteropServices.ComTypes.IStream

Reference to the destination stream.
cb

Type: System.Int64

The number of bytes to copy from the source stream.
pcbRead

Type: System.IntPtr

On successful return, contains the actual number of bytes read from the source.
pcbWritten

Type: System.IntPtr

On successful return, contains the actual number of bytes written to the destination.

Remarks

For more information, please see the existing documentation for IStream::CopyTo in the MSDN library.

See Also

Reference