Class FigureRendererPlugin
Class FigureRendererPlugin
Název místa: Aspose.TeX.Plugins Shromáždění: Aspose.TeX.dll (25.4.0)
Třída Plugin 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
Dědiční členové
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()
Máme tu instanci.
public void Dispose()
Process(IPluginopce)
Probíhá zpracování Figure Renderer se specifikovanými parametry.
public ResultContainer Process(IPluginOptions options)
Parameters
options
IPluginOptions
Objekt možností obsahující pokyny pro FigureRenderer.
Returns
Objekt ResultContainer obsahující výsledek operace.
Exceptions
Pokud je daný příklad možností nulový nebo má nevhodný typ,nebo jeden z vstupních/výstupních zdrojů má nepodporovaný typ.