Class FigureRendererPlugin

Class FigureRendererPlugin

名称: Aspose.TeX.Plugins 合計: Aspose.TeX.dll (25.4.0)

画像レンダープラグインクラス例では、PNG で LaTeX フラグメントを表示する方法を示しています。

// 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

object FigureRendererPlugin

Implements

IPlugin , IDisposable

相続人

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

ResultContainer オブジェクトは、作業の結果を含む。

Exceptions

ArgumentException

特定のオプションの例がゼロである場合、または不適切なタイプがある場合、または、入力/出力源のいずれかがサポートされていないタイプを持っています。

 日本語