Class MathRendererPlugin

Class MathRendererPlugin

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

فئة مكون MathRenderer.
يوضح المثال كيفية عرض صيغة LaTeX في PNG.

// إنشاء MathRenderer.
MathRendererPlugin renderer = new MathRendererPlugin();
// إنشاء مثيل PngMathRendererPluginOptions وإعداد الخيارات.
PngMathRendererPluginOptions options = new PngMathRendererPluginOptions()
{
    BackgroundColor = Color.Yellow,
    TextColor = Color.Blue,
    Resolution = 150,
    Margin = 10,
    Preamble = "مقدمة LaTeX"
};
// إضافة صيغة مصدر.
options.AddInputDataSource(new StringDataSource("صيغة LaTeX"));
// إنشاء دفق لكتابة الصورة إليه.
using (Stream stream = File.Open("مسار الإخراج", 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

عندما تكون نسخة الخيارات المعطاة فارغة أو من نوع غير مناسب، أو أحد مصادر الإدخال/الإخراج له نوع غير مدعوم.

 عربي