Class FigureRendererPlugin
Nombre del espacio: Aspose.TeX.Plugins Asamblea: Aspose.TeX.dll (25.4.0)
Clase 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
IPlugin ,y, IDisposable
Miembros heredados
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
FigureRendererPlugin()
public FigureRendererPlugin()
Methods
Dispose()
Disponemos de esta instancia.
public void Dispose()
Process(Opciones IPlugin)
Runs Figure Renderer procesamiento con los parámetros especificados.
public ResultContainer Process(IPluginOptions options)
Parameters
options
IPluginOptions
Un objeto de opciones que contiene instrucciones para el FigureRenderer.
Returns
Un objeto ResultContainer que contiene el resultado de la operación.
Exceptions
Cuando la opción dada es nula o tiene un tipo inapropiado,o una de las fuentes de entrada / salida tiene un tipo no soportado.