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.
VegaRise.NET

Sign In

Welcome back. Please sign in to your account.

Forgot password?
or

Don't have an account? Create an account

By signing in, you agree to our Terms of Service and Privacy Policy.