Class FigureRendererPlugin

Class FigureRendererPlugin

Tên không gian: Aspose.TeX.Plugins Tổng hợp: Aspose.TeX.dll (25.4.0)

Hình Renderer plugin lớp.Ví dụ cho thấy làm thế nào để thực hiện một mảnh LaTeX trong 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

Thành viên thừa kế

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

có lệnh này.

public void Dispose()

Process(IPluginTùy chọn)

Thực hiện xử lý Figure Renderer với các thông số được chỉ định.

public ResultContainer Process(IPluginOptions options)

Parameters

options IPluginOptions

Một đối tượng tùy chọn có chứa hướng dẫn cho FigureRenderer.

Returns

ResultContainer

Một đối tượng ResultContainer chứa kết quả hoạt động.

Exceptions

ArgumentException

Khi ví dụ tùy chọn được cung cấp là không hoặc có loại không phù hợp,hoặc một trong các nguồn nhập / xuất có loại không được hỗ trợ.

 Tiếng Việt