Skip to content

TextStudioGlyphImageCapture

ClassTextStudioTextStudio
public static class TextStudioGlyphImageCapture

Captures exact images at the shaping boundary on the main thread. No Unity texture, pooled callback array or backend is retained by a successful result.

Capture(ITextStudioShapedGlyphBackend, int, ITextStudioGlyphImageProvider, out TextStudioGlyphImageSnapshot, out string)

Section titled “Capture(ITextStudioShapedGlyphBackend, int, ITextStudioGlyphImageProvider, out TextStudioGlyphImageSnapshot, out string)”
public static TextStudioGlyphImageStatus Capture(ITextStudioShapedGlyphBackend backend, int shapedGlyphIndex, ITextStudioGlyphImageProvider preparedProvider, out TextStudioGlyphImageSnapshot image, out string diagnostic)

Captures owned pixels for a current shaped glyph and rejects requests that change during capture.

Parameters

Name Type
backend TextStudio.ITextStudioShapedGlyphBackend
shapedGlyphIndex System.Int32
preparedProvider TextStudio.ITextStudioGlyphImageProvider
image TextStudio.TextStudioGlyphImageSnapshot
diagnostic System.String

Returns

TextStudio.TextStudioGlyphImageStatus