Class MathRendererPlugin

Class MathRendererPlugin

Namespace: Aspose.TeX.Plugins
Assembly: Aspose.TeX.dll

MathRenderer 플러그인 클래스.
예제는 PNG 형식으로 LaTeX 공식을 렌더링하는 방법을 보여줍니다.

// MathRenderer 생성.
MathRendererPlugin renderer = new MathRendererPlugin();
// PngMathRendererPluginOptions 인스턴스를 생성하고 옵션을 설정합니다.
PngMathRendererPluginOptions options = new PngMathRendererPluginOptions()
{
    BackgroundColor = Color.Yellow,
    TextColor = Color.Blue,
    Resolution = 150,
    Margin = 10,
    Preamble = "LaTeX preamble"
};
// 소스 공식을 추가합니다.
options.AddInputDataSource(new StringDataSource("LaTeX formula"));
// 이미지를 쓸 스트림을 생성합니다.
using (Stream stream = File.Open("output path", FileMode.Create))
{
    // 출력 스트림을 추가합니다.
    options.AddOutputDataTarget(new StreamDataSource(stream));
    // 프로세스를 실행합니다.
    ResultContainer result = renderer.Process(options);
}
public class MathRendererPlugin : IPlugin, IDisposable

상속

objectMathRendererPlugin

구현

IPlugin, IDisposable

상속된 멤버

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

생성자

MathRendererPlugin()

public MathRendererPlugin()

메서드

Dispose()

이 인스턴스를 해제합니다.

public void Dispose()

Process(IPluginOptions)

지정된 매개변수로 Math Renderer 처리를 실행합니다.

public ResultContainer Process(IPluginOptions options)

매개변수

options IPluginOptions

MathRenderer에 대한 지침을 포함하는 옵션 객체입니다.

반환

ResultContainer

작업 결과를 포함하는 ResultContainer 객체입니다.

예외

ArgumentException

주어진 옵션 인스턴스가 null이거나 부적절한 유형을 갖거나, 입력/출력 소스 중 하나가 지원되지 않는 유형인 경우 발생합니다.

 한국어