Class MathRendererPlugin
Class MathRendererPlugin
Numele spaţiului: Aspose.TeX.Plugins Asamblare: Aspose.TeX.dll (25.4.0)
Clasa de Plugin.
// 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
Membrii moștenitori
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()
dispune de această instanţă.
public void Dispose()
Process(Opțiuni IPlugin)
Runs Math Renderer procesarea cu parametrii specificați.
public ResultContainer Process(IPluginOptions options)
Parameters
options
IPluginOptions
Un obiect de opțiuni care conține instrucțiuni pentru MathRenderer.
Returns
Un obiect ResultContainer care conține rezultatul operațiunii.
Exceptions
În cazul în care un anumit tip de opțiune este zero sau are un tip inadecvat,sau una dintre sursele de intrare/de ieșire are tipul nesuportat.