Class MathRendererPlugin

Class MathRendererPlugin

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

MathRenderer プラグインクラス例では、PNG で LaTeX 公式を表示する方法を示しています。

// Create MathRenderer.
MathRendererPlugin renderer = new MathRendererPlugin();
// Create the PngMathRendererPluginOptions instance and set up options.
PngMathRendererPluginOptions options = new PngMathRendererPluginOptions()
{
    BackgroundColor = Color.Yellow,
    TextColor = Color.Blue,
    Resolution = 150,
    Margin = 10,
    Preamble = "LaTeX preamble"
};
// Add a source formula.
options.AddInputDataSource(new StringDataSource("LaTeX formula"));
// 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 MathRendererPlugin : IPlugin, IDisposable

Inheritance

object MathRendererPlugin

Implements

IPlugin , IDisposable

相続人

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

MathRendererPlugin()

public MathRendererPlugin()

Methods

Dispose()

この命令がある。

public void Dispose()

Process(IPluginオプション)

指定されたパラメーターで Math Renderer 処理を実行します。

public ResultContainer Process(IPluginOptions options)

Parameters

options IPluginOptions

MathRenderer のための指示を含むオプションオブジェクト。

Returns

ResultContainer

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

Exceptions

ArgumentException

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

 日本語