Class MathRendererPlugin
Class MathRendererPlugin
Nombre del espacio: Aspose.TeX.Plugins Asamblea: Aspose.TeX.dll (25.4.0)
Clase de Plugin.
// Create MathRenderer.
MathRendererPlugin renderer = new MathRendererPlugin();
// Create the PngMathRendererPluginOptions instance and set up options.
PngMathRendererPluginOptions options = new PngMathRendererPluginOptions()
{
BackgroundColor = Color.Yellow,
TextColor = Color.Blue,
Resolution = 150,
Margin = 10,
Preamble = "LaTeX preamble"
};
// Add a source formula.
options.AddInputDataSource(new StringDataSource("LaTeX formula"));
// 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 MathRendererPlugin : 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
MathRendererPlugin()
public MathRendererPlugin()
Methods
Dispose()
Disponemos de esta instancia.
public void Dispose()
Process(Opciones IPlugin)
Runs Math Renderer procesamiento con los parámetros especificados.
public ResultContainer Process(IPluginOptions options)
Parameters
options
IPluginOptions
Un objeto de opciones que contiene instrucciones para el MathRenderer.
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.