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(IPlugin опции)
Извършва Figure Renderer обработка с посочените параметри.
public ResultContainer Process(IPluginOptions options)
Parameters
options
IPluginOptions
Опционен обект, съдържащ инструкции за FigureRenderer.
Returns
Резултат контейнер обект, съдържащ резултата от операцията.
Exceptions
Когато дадена опция е нула или има неподходящ тип,или един от източниците за вход/изход има неподходящ тип.