Class OtgRasterizationOptions

Class OtgRasterizationOptions

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

Las opciones de rasterización de Otg

public class OtgRasterizationOptions : OdRasterizationOptions, IDisposable, IHasXmpData, IHasMetadata, ICloneable

Inheritance

object DisposableObject ImageOptionsBase VectorRasterizationOptions OdRasterizationOptions OtgRasterizationOptions

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()

Examples

El siguiente corte de código muestra cómo convertir una imagen OTG en PDF y otros formatos de imagen.

string dir = "c:\\aspose.imaging\\issues\\net\\3567\\";
                                                                                                              string inputFilePath = dir + "VariousObjectsMultiPage.otg";
                                                                                                              Aspose.Imaging.ImageOptionsBase[] options = { new Aspose.Imaging.ImageOptions.PngOptions(), new Aspose.Imaging.ImageOptions.PdfOptions() };
                                                                                                              foreach (Aspose.Imaging.ImageOptionsBase saveOptions in options)
                                                                                                              {
                                                                                                                  string extension = saveOptions is Aspose.Imaging.ImageOptions.PngOptions ? ".png" : ".pdf";
                                                                                                                  using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(inputFilePath))
                                                                                                                  {
                                                                                                                      Aspose.Imaging.ImageOptions.OtgRasterizationOptions otgRasterizationOptions = new Aspose.Imaging.ImageOptions.OtgRasterizationOptions();
                                                                                                                      otgRasterizationOptions.PageSize = image.Size;
                                                                                                                      saveOptions.VectorRasterizationOptions = otgRasterizationOptions;

                                                                                                                      image.Save(inputFilePath + extension, saveOptions);
                                                                                                                  }
                                                                                                              }

Constructors

OtgRasterizationOptions()

public OtgRasterizationOptions()
 Español