Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Aspose.Imaging for .NET
This gist exceeds the recommended number of files (~10). To access all files, please clone this gist.
Gist for Aspose.Imaging for .NET.
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the APNG file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.apng"))
{
// create an instance of BmpOptions
var options = new Aspose.Imaging.ImageOptions.BmpOptions();
// save APNG as a BMP
image.Save(@"output.bmp", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the APNG file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.apng"))
{
// create an instance of DicomOptions
var options = new Aspose.Imaging.ImageOptions.DicomOptions();
// save APNG as a DICOM
image.Save(@"output.dicom", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the APNG file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.apng"))
{
// create an instance of EmfOptions
var options = new Aspose.Imaging.ImageOptions.EmfOptions();
// save APNG as a EMF
image.Save(@"output.emf", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the APNG file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.apng"))
{
// create an instance of EmzOptions
var options = new Aspose.Imaging.ImageOptions.EmfOptions(){ Compress = true };
// save APNG as a EMZ
image.Save(@"output.emz", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the APNG file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.apng"))
{
// create an instance of GifOptions
var options = new Aspose.Imaging.ImageOptions.GifOptions();
// save APNG as a GIF
image.Save(@"output.gif", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the APNG file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.apng"))
{
// create an instance of HtmlOptions
var options = new Aspose.Imaging.ImageOptions.Html5CanvasOptions();
// save APNG as a HTML
image.Save(@"output.html", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the APNG file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.apng"))
{
// create an instance of J2kOptions
var options = new Aspose.Imaging.ImageOptions.Jpeg2000Options { Codec = Aspose.Imaging.FileFormats.Jpeg2000.Jpeg2000Codec.J2K };
// save APNG as a J2K
image.Save(@"output.j2k", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the APNG file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.apng"))
{
// create an instance of Jp2Options
var options = new Aspose.Imaging.ImageOptions.Jpeg2000Options { Codec = Aspose.Imaging.FileFormats.Jpeg2000.Jpeg2000Codec.Jp2 };
// save APNG as a JP2
image.Save(@"output.jp2", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the APNG file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.apng"))
{
// create an instance of JpgOptions
var options = new Aspose.Imaging.ImageOptions.JpegOptions();
// save APNG as a JPG
image.Save(@"output.jpg", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the APNG file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.apng"))
{
// create an instance of PdfOptions
var options = new Aspose.Imaging.ImageOptions.PdfOptions();
// save APNG as a PDF
image.Save(@"output.pdf", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the APNG file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.apng"))
{
// create an instance of PsdOptions
var options = new Aspose.Imaging.ImageOptions.PsdOptions();
// save APNG as a PSD
image.Save(@"output.psd", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the APNG file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.apng"))
{
// create an instance of SvgOptions
var options = new Aspose.Imaging.ImageOptions.SvgOptions();
// save APNG as a SVG
image.Save(@"output.svg", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the APNG file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.apng"))
{
// create an instance of SvgzOptions
var options = new Aspose.Imaging.ImageOptions.SvgOptions(){ Compress = true };
// save APNG as a SVGZ
image.Save(@"output.svgz", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the APNG file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.apng"))
{
// create an instance of TgaOptions
var options = new Aspose.Imaging.ImageOptions.TgaOptions();
// save APNG as a TGA
image.Save(@"output.tga", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the APNG file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.apng"))
{
// create an instance of TiffOptions
var options = new Aspose.Imaging.ImageOptions.TiffOptions(Aspose.Imaging.FileFormats.Tiff.Enums.TiffExpectedFormat.Default);
// save APNG as a TIFF
image.Save(@"output.tiff", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the APNG file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.apng"))
{
// create an instance of WebpOptions
var options = new Aspose.Imaging.ImageOptions.WebPOptions();
// save APNG as a WEBP
image.Save(@"output.webp", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the APNG file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.apng"))
{
// create an instance of WmfOptions
var options = new Aspose.Imaging.ImageOptions.WmfOptions();
// save APNG as a WMF
image.Save(@"output.wmf", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the APNG file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.apng"))
{
// create an instance of WmzOptions
var options = new Aspose.Imaging.ImageOptions.WmfOptions(){ Compress = true };
// save APNG as a WMZ
image.Save(@"output.wmz", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the BMP file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.bmp"))
{
// create an instance of DicomOptions
var options = new Aspose.Imaging.ImageOptions.DicomOptions();
// save BMP as a DICOM
image.Save(@"output.dicom", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the BMP file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.bmp"))
{
// create an instance of EmfOptions
var options = new Aspose.Imaging.ImageOptions.EmfOptions();
// save BMP as a EMF
image.Save(@"output.emf", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the BMP file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.bmp"))
{
// create an instance of EmzOptions
var options = new Aspose.Imaging.ImageOptions.EmfOptions(){ Compress = true };
// save BMP as a EMZ
image.Save(@"output.emz", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the BMP file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.bmp"))
{
// create an instance of GifOptions
var options = new Aspose.Imaging.ImageOptions.GifOptions();
// save BMP as a GIF
image.Save(@"output.gif", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the BMP file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.bmp"))
{
// create an instance of HtmlOptions
var options = new Aspose.Imaging.ImageOptions.Html5CanvasOptions();
// save BMP as a HTML
image.Save(@"output.html", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the BMP file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.bmp"))
{
// create an instance of J2kOptions
var options = new Aspose.Imaging.ImageOptions.Jpeg2000Options { Codec = Aspose.Imaging.FileFormats.Jpeg2000.Jpeg2000Codec.J2K };
// save BMP as a J2K
image.Save(@"output.j2k", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the BMP file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.bmp"))
{
// create an instance of Jp2Options
var options = new Aspose.Imaging.ImageOptions.Jpeg2000Options { Codec = Aspose.Imaging.FileFormats.Jpeg2000.Jpeg2000Codec.Jp2 };
// save BMP as a JP2
image.Save(@"output.jp2", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the BMP file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.bmp"))
{
// create an instance of JpegOptions
var options = new Aspose.Imaging.ImageOptions.JpegOptions();
// save BMP as a JPEG
image.Save(@"output.jpeg", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the BMP file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.bmp"))
{
// create an instance of Jpeg2000Options
var options = new Aspose.Imaging.ImageOptions.Jpeg2000Options();
// save BMP as a JPEG2000
image.Save(@"output.jpeg2000", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the BMP file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.bmp"))
{
// create an instance of JpgOptions
var options = new Aspose.Imaging.ImageOptions.JpegOptions();
// save BMP as a JPG
image.Save(@"output.jpg", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the BMP file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.bmp"))
{
// create an instance of PdfOptions
var options = new Aspose.Imaging.ImageOptions.PdfOptions();
// save BMP as a PDF
image.Save(@"output.pdf", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the BMP file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.bmp"))
{
// create an instance of PngOptions
var options = new Aspose.Imaging.ImageOptions.PngOptions();
// save BMP as a PNG
image.Save(@"output.png", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the BMP file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.bmp"))
{
// create an instance of PsdOptions
var options = new Aspose.Imaging.ImageOptions.PsdOptions();
// save BMP as a PSD
image.Save(@"output.psd", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the BMP file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.bmp"))
{
// create an instance of SvgOptions
var options = new Aspose.Imaging.ImageOptions.SvgOptions();
// save BMP as a SVG
image.Save(@"output.svg", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the BMP file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.bmp"))
{
// create an instance of SvgzOptions
var options = new Aspose.Imaging.ImageOptions.SvgOptions(){ Compress = true };
// save BMP as a SVGZ
image.Save(@"output.svgz", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the BMP file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.bmp"))
{
// create an instance of TgaOptions
var options = new Aspose.Imaging.ImageOptions.TgaOptions();
// save BMP as a TGA
image.Save(@"output.tga", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the BMP file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.bmp"))
{
// create an instance of TiffOptions
var options = new Aspose.Imaging.ImageOptions.TiffOptions(Aspose.Imaging.FileFormats.Tiff.Enums.TiffExpectedFormat.Default);
// save BMP as a TIFF
image.Save(@"output.tiff", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the BMP file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.bmp"))
{
// create an instance of WebpOptions
var options = new Aspose.Imaging.ImageOptions.WebPOptions();
// save BMP as a WEBP
image.Save(@"output.webp", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the BMP file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.bmp"))
{
// create an instance of WmfOptions
var options = new Aspose.Imaging.ImageOptions.WmfOptions();
// save BMP as a WMF
image.Save(@"output.wmf", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the BMP file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.bmp"))
{
// create an instance of WmzOptions
var options = new Aspose.Imaging.ImageOptions.WmfOptions(){ Compress = true };
// save BMP as a WMZ
image.Save(@"output.wmz", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the CDR file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.cdr"))
{
// create an instance of ApngOptions
var options = new Aspose.Imaging.ImageOptions.ApngOptions();
// save CDR as a APNG
image.Save(@"output.apng", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the CDR file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.cdr"))
{
// create an instance of BmpOptions
var options = new Aspose.Imaging.ImageOptions.BmpOptions();
// save CDR as a BMP
image.Save(@"output.bmp", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the CDR file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.cdr"))
{
// create an instance of DicomOptions
var options = new Aspose.Imaging.ImageOptions.DicomOptions();
// save CDR as a DICOM
image.Save(@"output.dicom", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the CDR file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.cdr"))
{
// create an instance of EmfOptions
var options = new Aspose.Imaging.ImageOptions.EmfOptions();
// save CDR as a EMF
image.Save(@"output.emf", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the CDR file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.cdr"))
{
// create an instance of EmzOptions
var options = new Aspose.Imaging.ImageOptions.EmfOptions(){ Compress = true };
// save CDR as a EMZ
image.Save(@"output.emz", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the CDR file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.cdr"))
{
// create an instance of GifOptions
var options = new Aspose.Imaging.ImageOptions.GifOptions();
// save CDR as a GIF
image.Save(@"output.gif", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the CDR file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.cdr"))
{
// create an instance of HtmlOptions
var options = new Aspose.Imaging.ImageOptions.Html5CanvasOptions();
// save CDR as a HTML
image.Save(@"output.html", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the CDR file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.cdr"))
{
// create an instance of J2kOptions
var options = new Aspose.Imaging.ImageOptions.Jpeg2000Options { Codec = Aspose.Imaging.FileFormats.Jpeg2000.Jpeg2000Codec.J2K };
// save CDR as a J2K
image.Save(@"output.j2k", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the CDR file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.cdr"))
{
// create an instance of Jp2Options
var options = new Aspose.Imaging.ImageOptions.Jpeg2000Options { Codec = Aspose.Imaging.FileFormats.Jpeg2000.Jpeg2000Codec.Jp2 };
// save CDR as a JP2
image.Save(@"output.jp2", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the CDR file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.cdr"))
{
// create an instance of JpegOptions
var options = new Aspose.Imaging.ImageOptions.JpegOptions();
// save CDR as a JPEG
image.Save(@"output.jpeg", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the CDR file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.cdr"))
{
// create an instance of JpgOptions
var options = new Aspose.Imaging.ImageOptions.JpegOptions();
// save CDR as a JPG
image.Save(@"output.jpg", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the CDR file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.cdr"))
{
// create an instance of PdfOptions
var options = new Aspose.Imaging.ImageOptions.PdfOptions();
// save CDR as a PDF
image.Save(@"output.pdf", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the CDR file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.cdr"))
{
// create an instance of PngOptions
var options = new Aspose.Imaging.ImageOptions.PngOptions();
// save CDR as a PNG
image.Save(@"output.png", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the CDR file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.cdr"))
{
// create an instance of PsdOptions
var options = new Aspose.Imaging.ImageOptions.PsdOptions();
// save CDR as a PSD
image.Save(@"output.psd", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the CDR file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.cdr"))
{
// create an instance of SvgOptions
var options = new Aspose.Imaging.ImageOptions.SvgOptions();
// save CDR as a SVG
image.Save(@"output.svg", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the CDR file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.cdr"))
{
// create an instance of SvgzOptions
var options = new Aspose.Imaging.ImageOptions.SvgOptions(){ Compress = true };
// save CDR as a SVGZ
image.Save(@"output.svgz", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the CDR file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.cdr"))
{
// create an instance of TgaOptions
var options = new Aspose.Imaging.ImageOptions.TgaOptions();
// save CDR as a TGA
image.Save(@"output.tga", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the CDR file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.cdr"))
{
// create an instance of TiffOptions
var options = new Aspose.Imaging.ImageOptions.TiffOptions(Aspose.Imaging.FileFormats.Tiff.Enums.TiffExpectedFormat.Default);
// save CDR as a TIFF
image.Save(@"output.tiff", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the CDR file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.cdr"))
{
// create an instance of WebpOptions
var options = new Aspose.Imaging.ImageOptions.WebPOptions();
// save CDR as a WEBP
image.Save(@"output.webp", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the CDR file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.cdr"))
{
// create an instance of WmfOptions
var options = new Aspose.Imaging.ImageOptions.WmfOptions();
// save CDR as a WMF
image.Save(@"output.wmf", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the CDR file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.cdr"))
{
// create an instance of WmzOptions
var options = new Aspose.Imaging.ImageOptions.WmfOptions(){ Compress = true };
// save CDR as a WMZ
image.Save(@"output.wmz", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the CMX file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.cmx"))
{
// create an instance of ApngOptions
var options = new Aspose.Imaging.ImageOptions.ApngOptions();
// save CMX as a APNG
image.Save(@"output.apng", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the CMX file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.cmx"))
{
// create an instance of BmpOptions
var options = new Aspose.Imaging.ImageOptions.BmpOptions();
// save CMX as a BMP
image.Save(@"output.bmp", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the CMX file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.cmx"))
{
// create an instance of DicomOptions
var options = new Aspose.Imaging.ImageOptions.DicomOptions();
// save CMX as a DICOM
image.Save(@"output.dicom", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the CMX file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.cmx"))
{
// create an instance of EmfOptions
var options = new Aspose.Imaging.ImageOptions.EmfOptions();
// save CMX as a EMF
image.Save(@"output.emf", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the CMX file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.cmx"))
{
// create an instance of EmzOptions
var options = new Aspose.Imaging.ImageOptions.EmfOptions(){ Compress = true };
// save CMX as a EMZ
image.Save(@"output.emz", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the CMX file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.cmx"))
{
// create an instance of GifOptions
var options = new Aspose.Imaging.ImageOptions.GifOptions();
// save CMX as a GIF
image.Save(@"output.gif", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the CMX file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.cmx"))
{
// create an instance of HtmlOptions
var options = new Aspose.Imaging.ImageOptions.Html5CanvasOptions();
// save CMX as a HTML
image.Save(@"output.html", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the CMX file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.cmx"))
{
// create an instance of J2kOptions
var options = new Aspose.Imaging.ImageOptions.Jpeg2000Options { Codec = Aspose.Imaging.FileFormats.Jpeg2000.Jpeg2000Codec.J2K };
// save CMX as a J2K
image.Save(@"output.j2k", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the CMX file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.cmx"))
{
// create an instance of Jp2Options
var options = new Aspose.Imaging.ImageOptions.Jpeg2000Options { Codec = Aspose.Imaging.FileFormats.Jpeg2000.Jpeg2000Codec.Jp2 };
// save CMX as a JP2
image.Save(@"output.jp2", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the CMX file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.cmx"))
{
// create an instance of JpegOptions
var options = new Aspose.Imaging.ImageOptions.JpegOptions();
// save CMX as a JPEG
image.Save(@"output.jpeg", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the CMX file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.cmx"))
{
// create an instance of JpgOptions
var options = new Aspose.Imaging.ImageOptions.JpegOptions();
// save CMX as a JPG
image.Save(@"output.jpg", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the CMX file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.cmx"))
{
// create an instance of PdfOptions
var options = new Aspose.Imaging.ImageOptions.PdfOptions();
// save CMX as a PDF
image.Save(@"output.pdf", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the CMX file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.cmx"))
{
// create an instance of PngOptions
var options = new Aspose.Imaging.ImageOptions.PngOptions();
// save CMX as a PNG
image.Save(@"output.png", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the CMX file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.cmx"))
{
// create an instance of PsdOptions
var options = new Aspose.Imaging.ImageOptions.PsdOptions();
// save CMX as a PSD
image.Save(@"output.psd", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the CMX file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.cmx"))
{
// create an instance of SvgOptions
var options = new Aspose.Imaging.ImageOptions.SvgOptions();
// save CMX as a SVG
image.Save(@"output.svg", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the CMX file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.cmx"))
{
// create an instance of SvgzOptions
var options = new Aspose.Imaging.ImageOptions.SvgOptions(){ Compress = true };
// save CMX as a SVGZ
image.Save(@"output.svgz", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the CMX file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.cmx"))
{
// create an instance of TgaOptions
var options = new Aspose.Imaging.ImageOptions.TgaOptions();
// save CMX as a TGA
image.Save(@"output.tga", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the CMX file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.cmx"))
{
// create an instance of TiffOptions
var options = new Aspose.Imaging.ImageOptions.TiffOptions(Aspose.Imaging.FileFormats.Tiff.Enums.TiffExpectedFormat.Default);
// save CMX as a TIFF
image.Save(@"output.tiff", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the CMX file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.cmx"))
{
// create an instance of WebpOptions
var options = new Aspose.Imaging.ImageOptions.WebPOptions();
// save CMX as a WEBP
image.Save(@"output.webp", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the CMX file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.cmx"))
{
// create an instance of WmfOptions
var options = new Aspose.Imaging.ImageOptions.WmfOptions();
// save CMX as a WMF
image.Save(@"output.wmf", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the CMX file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.cmx"))
{
// create an instance of WmzOptions
var options = new Aspose.Imaging.ImageOptions.WmfOptions(){ Compress = true };
// save CMX as a WMZ
image.Save(@"output.wmz", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the DIB file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.dib"))
{
// create an instance of BmpOptions
var options = new Aspose.Imaging.ImageOptions.BmpOptions();
// save DIB as a BMP
image.Save(@"output.bmp", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the DIB file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.dib"))
{
// create an instance of DicomOptions
var options = new Aspose.Imaging.ImageOptions.DicomOptions();
// save DIB as a DICOM
image.Save(@"output.dicom", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the DIB file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.dib"))
{
// create an instance of EmfOptions
var options = new Aspose.Imaging.ImageOptions.EmfOptions();
// save DIB as a EMF
image.Save(@"output.emf", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the DIB file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.dib"))
{
// create an instance of EmzOptions
var options = new Aspose.Imaging.ImageOptions.EmfOptions(){ Compress = true };
// save DIB as a EMZ
image.Save(@"output.emz", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the DIB file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.dib"))
{
// create an instance of GifOptions
var options = new Aspose.Imaging.ImageOptions.GifOptions();
// save DIB as a GIF
image.Save(@"output.gif", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the DIB file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.dib"))
{
// create an instance of HtmlOptions
var options = new Aspose.Imaging.ImageOptions.Html5CanvasOptions();
// save DIB as a HTML
image.Save(@"output.html", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the DIB file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.dib"))
{
// create an instance of J2kOptions
var options = new Aspose.Imaging.ImageOptions.Jpeg2000Options { Codec = Aspose.Imaging.FileFormats.Jpeg2000.Jpeg2000Codec.J2K };
// save DIB as a J2K
image.Save(@"output.j2k", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the DIB file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.dib"))
{
// create an instance of Jp2Options
var options = new Aspose.Imaging.ImageOptions.Jpeg2000Options { Codec = Aspose.Imaging.FileFormats.Jpeg2000.Jpeg2000Codec.Jp2 };
// save DIB as a JP2
image.Save(@"output.jp2", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the DIB file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.dib"))
{
// create an instance of JpegOptions
var options = new Aspose.Imaging.ImageOptions.JpegOptions();
// save DIB as a JPEG
image.Save(@"output.jpeg", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the DIB file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.dib"))
{
// create an instance of JpgOptions
var options = new Aspose.Imaging.ImageOptions.JpegOptions();
// save DIB as a JPG
image.Save(@"output.jpg", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the DIB file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.dib"))
{
// create an instance of PdfOptions
var options = new Aspose.Imaging.ImageOptions.PdfOptions();
// save DIB as a PDF
image.Save(@"output.pdf", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the DIB file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.dib"))
{
// create an instance of PngOptions
var options = new Aspose.Imaging.ImageOptions.PngOptions();
// save DIB as a PNG
image.Save(@"output.png", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the DIB file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.dib"))
{
// create an instance of PsdOptions
var options = new Aspose.Imaging.ImageOptions.PsdOptions();
// save DIB as a PSD
image.Save(@"output.psd", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the DIB file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.dib"))
{
// create an instance of SvgOptions
var options = new Aspose.Imaging.ImageOptions.SvgOptions();
// save DIB as a SVG
image.Save(@"output.svg", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the DIB file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.dib"))
{
// create an instance of SvgzOptions
var options = new Aspose.Imaging.ImageOptions.SvgOptions(){ Compress = true };
// save DIB as a SVGZ
image.Save(@"output.svgz", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the DIB file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.dib"))
{
// create an instance of TgaOptions
var options = new Aspose.Imaging.ImageOptions.TgaOptions();
// save DIB as a TGA
image.Save(@"output.tga", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the DIB file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.dib"))
{
// create an instance of TiffOptions
var options = new Aspose.Imaging.ImageOptions.TiffOptions(Aspose.Imaging.FileFormats.Tiff.Enums.TiffExpectedFormat.Default);
// save DIB as a TIFF
image.Save(@"output.tiff", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the DIB file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.dib"))
{
// create an instance of WebpOptions
var options = new Aspose.Imaging.ImageOptions.WebPOptions();
// save DIB as a WEBP
image.Save(@"output.webp", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the DIB file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.dib"))
{
// create an instance of WmfOptions
var options = new Aspose.Imaging.ImageOptions.WmfOptions();
// save DIB as a WMF
image.Save(@"output.wmf", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the DIB file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.dib"))
{
// create an instance of WmzOptions
var options = new Aspose.Imaging.ImageOptions.WmfOptions(){ Compress = true };
// save DIB as a WMZ
image.Save(@"output.wmz", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the DICOM file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.dicom"))
{
// create an instance of ApngOptions
var options = new Aspose.Imaging.ImageOptions.ApngOptions();
// save DICOM as a APNG
image.Save(@"output.apng", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the DICOM file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.dicom"))
{
// create an instance of BmpOptions
var options = new Aspose.Imaging.ImageOptions.BmpOptions();
// save DICOM as a BMP
image.Save(@"output.bmp", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the DICOM file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.dicom"))
{
// create an instance of EmfOptions
var options = new Aspose.Imaging.ImageOptions.EmfOptions();
// save DICOM as a EMF
image.Save(@"output.emf", options);
}
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
// load the DICOM file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.dicom"))
{
// create an instance of EmzOptions
var options = new Aspose.Imaging.ImageOptions.EmfOptions(){ Compress = true };
// save DICOM as a EMZ
image.Save(@"output.emz", options);
}