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(IPluginオプション)
指定されたパラメーターでFigure Renderer処理を実行します。
public ResultContainer Process(IPluginOptions options)
Parameters
options
IPluginOptions
FigureRenderer の指示を含むオプションオブジェクト。
Returns
ResultContainer オブジェクトは、作業の結果を含む。
Exceptions
特定のオプションの例がゼロである場合、または不適切なタイプがある場合、または、入力/出力源のいずれかがサポートされていないタイプを持っています。