Class FigureRendererPlugin

Class FigureRendererPlugin

اسم الفضاء : Aspose.TeX.Plugins تجميع: Aspose.TeX.dll (25.4.0)

فيديوهات متعلقة بـ “ Renderer Plugin Class ”يظهر المثال كيفية تصنيف قطعة LaTeX في PNG.

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

إذا كانت الخيارات المحددة صفرًا أو لديها نوع غير مناسب ،أو أحد مصادر الإدخال / الخروج لديه نوع غير مدعوم.

 عربي