Class FigureRendererPlugin
Class FigureRendererPlugin
Nom dels espais: Aspose.TeX.Plugins Assemblea: Aspose.TeX.dll (25.4.0)
Classificació de Plugin Renderer.
// 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
Membres heretats
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()
Disposa d’aquesta instància.
public void Dispose()
Process(Opcions IPlugin)
Executa el processament de Figure Renderer amb els paràmetres especificats.
public ResultContainer Process(IPluginOptions options)
Parameters
options
IPluginOptions
Un objecte d’opcions que conté instruccions per al FigureRenderer.
Returns
Un objecte ResultContainer que conté el resultat de l’operaci.
Exceptions
Quan l’exemple d’opcions estigui nul o té un tipus inadequat,o una de les fonts d’entrada / sortida té un tipus no recolzat.