Class FigureRendererPlugin
Class FigureRendererPlugin
Названий на: Aspose.TeX.Plugins Асамблея: Aspose.TeX.dll (25.4.0)
Класифікація плагіна 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
Нападні члени
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()
У такому розпорядженні є
public void Dispose()
Process(IPluginOptions)
Проводиться обробка Renderer з зазначеними параметрами.
public ResultContainer Process(IPluginOptions options)
Parameters
options
IPluginOptions
Об’єкт варіантів, що містить інструкції для FigureRenderer.
Returns
Об’єкт ResultContainer, що містить результат операції.
Exceptions
Якщо даний варіант є нульовим або має неадекватний тип,або один із джерел входу/виходу має непомітний тип.