Class FigureRendererPlugin
Class FigureRendererPlugin
De naam: Aspose.TeX.Plugins Verzameling: Aspose.TeX.dll (25.4.0)
De Figure Renderer plug-in klasse.
// 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
Geëerbiede leden
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()
Deze instantie is beschikbaar.
public void Dispose()
Process(IPluginopties)
Runs Figure Renderer verwerking met de aangegeven parameters.
public ResultContainer Process(IPluginOptions options)
Parameters
options
IPluginOptions
Een optie object met instructies voor de FigureRenderer.
Returns
Een ResultContainer object met het resultaat van de operatie.
Exceptions
Wanneer de gegeven optie-instantie nul is of een ontoereikend type heeft,of een van de input/output bronnen niet ondersteund type heeft.