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 选项)
运行图像转换器处理与指定的参数。
public ResultContainer Process(IPluginOptions options)
Parameters
options
IPluginOptions
包含指示的选项对象为FigureRenderer。
Returns
一个包含操作结果的 ResultContainer 对象。
Exceptions
如果指定选项例子是零或具有不适当的类型,或其中一个输入/输出源有未支持的类型。