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