VegaRise.NET
Back to Image

ExportToStreamMethod

Definition

Namespace
DOM.Elements.Graphics
Assembly
DOM.dll

Exports the current image to a stream, optionally re-encoding it to a different format.

ExportToStream(Stream stream, ImageType imageType, int lossy)

Parameters

stream
Destination stream.
imageType
Target image format.
lossy
For JPEG, specifies the quality from 0 to 100 (higher is better). Ignored for lossless formats.

Exceptions

  • System.ArgumentNullException: Thrown when is null. stream
  • System.InvalidOperationException: Thrown when the image has no content.
VegaRiseVDocs.NET

Create Account

Create your VDocs account.

or

Already have an account? Sign in