VegaRise.NET
Back to Image

ExportToFileMethod

Definition

Namespace
DOM.Elements.Graphics
Assembly
DOM.dll

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

ExportToFile(string filePath, ImageType imageType, int lossy)

Parameters

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

Exceptions

  • System.ArgumentException: Thrown when is null or empty. filePath
  • System.InvalidOperationException: Thrown when the image has no content.
  • System.Exception: Thrown when encoding fails.
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.