xaml-math icon indicating copy to clipboard operation
xaml-math copied to clipboard

Method to render a formula to an existing bitmap

Open WhiteBlackGoose opened this issue 3 years ago • 0 comments

Motivation

To avoid reallocations for every created bitmap. Useful, when rendering a formula for the same control/file.

Details

Proposed syntax for TexRenderer:

public void RenderToBitmap(RenderTargetBitmap dst, double x, double y)

The idea is to render it to the given bitmap of type RenderTargetBitmap. Because the rendered image has an unpredictable size, I suggest resizing it internally to the size of the destination bitmap.

WhiteBlackGoose avatar Mar 04 '21 09:03 WhiteBlackGoose