Class MathRendererPlugin
Class MathRendererPlugin
이름 공간 : Aspose.TeX.Plugins 모임: Aspose.TeX.dll (25.4.0)
MathRenderer 플러그인 클래스
// 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
상속 회원들
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()
이 법안이 있습니다.
public void Dispose()
Process(IPlugin옵션)
특정 매개 변수와 함께 Math Renderer 처리를 실행합니다.
public ResultContainer Process(IPluginOptions options)
Parameters
options
IPluginOptions
MathRenderer에 대한 지침을 포함하는 옵션 개체.
Returns
작동의 결과를 포함하는 ResultContainer 개체.
Exceptions
특정 옵션 예제가 0이거나 부적절한 유형이 있는 경우,또는 입력/출력 출처 중 하나가 지원되지 않은 유형을 가지고 있습니다.