Class MathRendererPlugin
Class MathRendererPlugin
Tên không gian: Aspose.TeX.Plugins Tổng hợp: Aspose.TeX.dll (25.4.0)
MathRenderer plugin lớp.
// 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
Implements
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
MathRendererPlugin()
public MathRendererPlugin()
Methods
Dispose()
có lệnh này.
public void Dispose()
Process(IPluginTùy chọn)
Thực hiện việc xử lý Math Renderer với các thông số cụ thể.
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 MathRenderer.
Returns
Một đối tượng ResultContainer chứa kết quả hoạt động.
Exceptions
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ợ.