Class MathRendererPlugin

Class MathRendererPlugin

Nama dari : Aspose.TeX.Plugins Perhitungan: Aspose.TeX.dll (25.4.0)

Klasifikasi Plugin.Contohnya menunjukkan bagaimana membuat formula LaTeX dalam PNG.

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

anggota yang diwarisi

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()

Ada instansi ini.

public void Dispose()

Process(Pilihan IPlugin)

Mengendalikan Math Renderer dengan parameter yang ditentukan.

public ResultContainer Process(IPluginOptions options)

Parameters

options IPluginOptions

Objek opsi yang berisi instruksi untuk MathRenderer.

Returns

ResultContainer

Sebuah objek ResultContainer yang berisi hasil operasi.

Exceptions

ArgumentException

Ketika instans opsi yang diberikan adalah nol atau memiliki jenis yang tidak sesuai,atau salah satu sumber input/output memiliki jenis yang tidak didukung.

 Indonesia