Class FigureRendererPlugin

Class FigureRendererPlugin

نام ها : Aspose.TeX.Plugins جمع آوری: WL44_.dll (25.4.0)

کلاس پلاگین Rendererنمونه نشان می دهد که چگونه یک قطعه 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 گزینه ها)

پردازش تصویر Renderer با پارامترهای مشخص شده اجرا می شود.

public ResultContainer Process(IPluginOptions options)

Parameters

options IPluginOptions

یک گزینه اشیاء حاوی دستورالعمل برای FigureRenderer.

Returns

ResultContainer

یک اشیاء ResultContainer که شامل نتیجه عملیات است.

Exceptions

ArgumentException

هنگامی که گزینه داده شده صفر است یا نوع نامناسب دارد،یا یکی از منابع ورودی / خروجی دارای نوع پشتیبانی نشده است.

 فارسی