Class EmfRasterizationOptions

Class EmfRasterizationOptions

Nombre del espacio: Aspose.Imaging.ImageOptions Asamblea: Aspose.Imaging.dll (25.4.0)

Las opciones de rasterización de EMF.

public class EmfRasterizationOptions : MetafileRasterizationOptions, IDisposable, IHasXmpData, IHasMetadata, ICloneable

Inheritance

object DisposableObject ImageOptionsBase VectorRasterizationOptions MetafileRasterizationOptions EmfRasterizationOptions

Implements

IDisposable ,y, IHasXmpData ,y, IHasMetadata ,y, ICloneable

Miembros heredados

VectorRasterizationOptions.CopyTo(VectorRasterizationOptions) ,y, VectorRasterizationOptions.BorderX ,y, VectorRasterizationOptions.BorderY ,y, VectorRasterizationOptions.CenterDrawing ,y, VectorRasterizationOptions.PageHeight ,y, VectorRasterizationOptions.PageSize ,y, VectorRasterizationOptions.PageWidth ,y, VectorRasterizationOptions.BackgroundColor ,y, VectorRasterizationOptions.DrawColor ,y, VectorRasterizationOptions.SmoothingMode ,y, VectorRasterizationOptions.TextRenderingHint ,y, VectorRasterizationOptions.Positioning ,y, VectorRasterizationOptions.ReplaceTextMapping ,y, ImageOptionsBase.Clone() ,y, ImageOptionsBase.ReleaseManagedResources() ,y, ImageOptionsBase.KeepMetadata ,y, ImageOptionsBase.XmpData ,y, ImageOptionsBase.Source ,y, ImageOptionsBase.Palette ,y, ImageOptionsBase.ResolutionSettings ,y, ImageOptionsBase.VectorRasterizationOptions ,y, ImageOptionsBase.BufferSizeHint ,y, ImageOptionsBase.MultiPageOptions ,y, ImageOptionsBase.FullFrame ,y, ImageOptionsBase.ProgressEventHandler ,y, DisposableObject.Dispose() ,y, DisposableObject.ReleaseManagedResources() ,y, DisposableObject.ReleaseUnmanagedResources() ,y, DisposableObject.VerifyNotDisposed() ,y, DisposableObject.Disposed ,y, object.GetType() ,y, object.MemberwiseClone() ,y, object.ToString() ,y, object.Equals(object?) ,y, object.Equals(object?, object?) ,y, object.ReferenceEquals(object?, object?) ,y, object.GetHashCode()

Constructors

EmfRasterizationOptions()

public EmfRasterizationOptions()

Properties

RenderMode

Obtenga o establece el modo de rendimiento.

public EmfRenderMode RenderMode { get; set; }

Valor de la propiedad

EmfRenderMode

Examples

Este ejemplo muestra cómo cargar una imagen EMF de un archivo y convertirla en SVG utilizando EmfRasterizationOptions.

string dir = "c:\\temp\\";

                                                                                                                      // Using Aspose.Imaging.Image.Load is a unified way to load all types of images including EMF.
                                                                                                                      using (Aspose.Imaging.FileFormats.Emf.EmfImage emfImage = (Aspose.Imaging.FileFormats.Emf.EmfImage)Aspose.Imaging.Image.Load(dir + "test.emf"))
                                                                                                                      {
                                                                                                                          Aspose.Imaging.ImageOptions.SvgOptions saveOptions = new Aspose.Imaging.ImageOptions.SvgOptions();

                                                                                                                          // Text will be converted to shapes.
                                                                                                                          saveOptions.TextAsShapes = true;

                                                                                                                          Aspose.Imaging.ImageOptions.EmfRasterizationOptions rasterizationOptions = new Aspose.Imaging.ImageOptions.EmfRasterizationOptions();

                                                                                                                          // The background color of the drawing surface.
                                                                                                                          rasterizationOptions.BackgroundColor = Aspose.Imaging.Color.WhiteSmoke;

                                                                                                                          // The page size.
                                                                                                                          rasterizationOptions.PageSize = emfImage.Size;

                                                                                                                          // If embedded emf exists, then render emf; otherwise render wmf.
                                                                                                                          rasterizationOptions.RenderMode = Aspose.Imaging.FileFormats.Emf.EmfRenderMode.Auto;

                                                                                                                          // Set the horizontal margin
                                                                                                                          rasterizationOptions.BorderX = 50;

                                                                                                                          // Set the vertical margin
                                                                                                                          rasterizationOptions.BorderY = 50;

                                                                                                                          saveOptions.VectorRasterizationOptions = rasterizationOptions;

                                                                                                                          emfImage.Save(dir + "test.output.svg", saveOptions);
                                                                                                                      }

Methods

CopyTo(VectorRasterizationOptions)

Copia esto a vectorRasterizationOptions'.

public override void CopyTo(VectorRasterizationOptions vectorRasterizationOptions)

Parameters

vectorRasterizationOptions VectorRasterizationOptions

VectorRasterizaciónOpciones

 Español