[]
Creates and returns a stream containing the image bytes.
If the image bytes are stored in the picture, creates and returns a MemoryStream object.
If the image is linked and stored in a file, opens the file and returns a FileStream object.
If the image is linked and stored in an external URL, downloads the file and returns a MemoryStream object.
public override Stream ToStream()
Public Overrides Function ToStream() As Stream
Type | Description |
---|---|
Stream | A stream containing the image bytes. |