Class FigureRendererPlugin
Class FigureRendererPlugin
Именује се: Aspose.TeX.Plugins Асамблеја: Aspose.TeX.dll (25.4.0)
Класа слике Рендера плугин.
// 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(ИПЛУГИНОПЦИЈА)
Раде обраду слике Рендера са одређеним параметрима.
public ResultContainer Process(IPluginOptions options)
Parameters
options
IPluginOptions
Објекат опција са упутствима за ФигуреРендера.
Returns
Резултат контејнер објекат који садржи резултат операције.
Exceptions
Када је одређена опција примјер нула или има неадекватну врсту,или један од извора улаза / излаза има неподржан тип.