Class WmfRasterizationOptions
Název místa: Aspose.Imaging.ImageOptions Shromáždění: Aspose.Imaging.dll (25.5.0)
Možnosti rasterizace Wmf.
public class WmfRasterizationOptions : MetafileRasterizationOptions, ICloneableInheritance
object ← VectorRasterizationOptions ← MetafileRasterizationOptions ← WmfRasterizationOptions
Implements
Dědiční členové
VectorRasterizationOptions.Clone() , VectorRasterizationOptions.CopyTo(VectorRasterizationOptions) , VectorRasterizationOptions.BorderX , VectorRasterizationOptions.BorderY , VectorRasterizationOptions.CenterDrawing , VectorRasterizationOptions.PageHeight , VectorRasterizationOptions.PageSize , VectorRasterizationOptions.PageWidth , VectorRasterizationOptions.BackgroundColor , VectorRasterizationOptions.DrawColor , VectorRasterizationOptions.SmoothingMode , VectorRasterizationOptions.TextRenderingHint , VectorRasterizationOptions.Positioning , VectorRasterizationOptions.ReplaceTextMapping , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
WmfRasterizationOptions()
public WmfRasterizationOptions()Properties
RenderMode
Obdržíte nebo nastavíte WMF render režim.
public WmfRenderMode RenderMode { get; set; }Hodnota nemovitosti
Examples
Tento příklad ukazuje, jak nahrát obrázek WMF z souboru a převést ho na SVG pomocí WmfRasterizationOptions.
string dir = "c:\\temp\\";
                                                                                                                      // Using Aspose.Imaging.Image.Load is a unified way to load all types of images including WMF.
                                                                                                                      using (Aspose.Imaging.FileFormats.Wmf.WmfImage wmfImage = (Aspose.Imaging.FileFormats.Wmf.WmfImage)Aspose.Imaging.Image.Load(dir + "test.wmf"))
                                                                                                                      {
                                                                                                                          Aspose.Imaging.ImageOptions.SvgOptions saveOptions = new Aspose.Imaging.ImageOptions.SvgOptions();
                                                                                                                          // Text will be converted to shapes.
                                                                                                                          saveOptions.TextAsShapes = true;
                                                                                                                          Aspose.Imaging.ImageOptions.WmfRasterizationOptions rasterizationOptions = new Aspose.Imaging.ImageOptions.WmfRasterizationOptions();
                                                                                                                          // The background color of the drawing surface.
                                                                                                                          rasterizationOptions.BackgroundColor = Aspose.Imaging.Color.WhiteSmoke;
                                                                                                                          // The page size.
                                                                                                                          rasterizationOptions.PageSize = wmfImage.Size;
                                                                                                                          // If embedded emf exists, then render emf; otherwise render wmf.
                                                                                                                          rasterizationOptions.RenderMode = Aspose.Imaging.FileFormats.Wmf.WmfRenderMode.Auto;
                                                                                                                          saveOptions.VectorRasterizationOptions = rasterizationOptions;
                                                                                                                          wmfImage.Save(dir + "test.output.svg", saveOptions);
                                                                                                                      }Methods
CopyTo(VectorRasterizationOptions)
Kopírujte toto na vectorRasterizationOptions'.
public override void CopyTo(VectorRasterizationOptions vectorRasterizationOptions)Parameters
vectorRasterizationOptions VectorRasterizationOptions
VektorRasterizační možnosti