Class FigureRendererPlugin
Class FigureRendererPlugin
A név: Aspose.TeX.Plugins Összefoglaló: Aspose.TeX.dll (25.4.0)
A Figure Renderer plugin osztály.
// Create the Figure Renderer.
FigureRendererPlugin renderer = new FigureRendererPlugin();
// Create the PngFigureRendererPluginOptions instance and set up options.
PngFigureRendererPluginOptions options = new PngFigureRendererPluginOptions()
{
BackgroundColor = Color.Yellow,
Resolution = 150,
Margin = 10,
Preamble = "LaTeX preamble"
};
// Add an input LaTeX fragment.
options.AddInputDataSource(new StringDataSource("LaTeX fragment"));
// Create a stream to write the image to.
using (Stream stream = File.Open("output path", FileMode.Create))
{
// Add an output stream.
options.AddOutputDataTarget(new StreamDataSource(stream));
// Run the process.
ResultContainer result = renderer.Process(options);
}
```</example>
```csharp
public class FigureRendererPlugin : IPlugin, IDisposable
Inheritance
Implements
Örökletes tagok
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
FigureRendererPlugin()
public FigureRendererPlugin()
Methods
Dispose()
Ez az eljárás rendelkezésre áll.
public void Dispose()
Process(IPluginOpciók)
A Figure Renderer feldolgozása a meghatározott paraméterekkel történik.
public ResultContainer Process(IPluginOptions options)
Parameters
options
IPluginOptions
Egy opció objektum, amely a FigureRenderer utasításait tartalmazza.
Returns
Egy ResultContainer objektum, amely tartalmazza a művelet eredményét.
Exceptions
Ha az adott opciós példa nulla vagy nem megfelelő típusú,vagy az egyik belépési / kimeneti forrás nem támogatott típusú.