Class FigureRendererPlugin

Class FigureRendererPlugin

ชื่อพื้นที่: Aspose.TeX.Plugins การประกอบ: Aspose.TeX.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(IPluginOptions)

การประมวลผลตัวอักษร Renderer พร้อมกับพารามิเตอร์ที่ระบุ

public ResultContainer Process(IPluginOptions options)

Parameters

options IPluginOptions

วัตถุตัวเลือกที่มีคําแนะนําสําหรับ FigureRenderer

Returns

ResultContainer

วัตถุ ResultContainer ซึ่งรวมถึงผลการดําเนินงาน

Exceptions

ArgumentException

เมื่อตัวอย่างตัวเลือกที่ระบุเป็นศูนย์หรือมีประเภทที่ไม่เหมาะสมหรือหนึ่งในแหล่งเข้า/ออกมีประเภทที่ไม่ได้สนับสนุน

 แบบไทย