We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The Example2. CSharpMath.SkiaSharp, apart from having syntax errors, doesn't say anything. Suggest to replace it with the following.
using CSharpMath.SkiaSharp; using SkiaSharp; //... void DrawSample() { var p = pictureBox; // exists a PictureBox with name pictureBox // create canvas var imageInfo = new SKImageInfo(p.Width, p.Height); using var surface = SKSurface.Create(imageInfo); using var canvas = surface.Canvas; var painter = new MathPainter { LaTeX = @"\frac\sqrt23" }; painter.Draw(canvas); using var snapshot = surface.Snapshot(); using var image = snapshot.Encode(SKEncodedImageFormat.Png, 100); using var stream = new MemoryStream(image.ToArray()); p.Image = new Bitmap(stream, false); }
The text was updated successfully, but these errors were encountered:
Where does the PictureBox come from?
Sorry, something went wrong.
It is a WinForm Control, in this case a project net7.0-windows. I publish that: https://github.com/harveytriana/LaTeXForms
Of course, the canvas can be from SKCanvasView for other platforms. i.g. Blazor or MAUI.
No branches or pull requests
The Example2. CSharpMath.SkiaSharp, apart from having syntax errors, doesn't say anything. Suggest to replace it with the following.
The text was updated successfully, but these errors were encountered: