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

NameType
backendTextStudio.ITextStudioShapedGlyphBackend
shapedGlyphIndexSystem.Int32
preparedProviderTextStudio.ITextStudioGlyphImageProvider
imageTextStudio.TextStudioGlyphImageSnapshot
diagnosticSystem.String

Returns

TextStudio.TextStudioGlyphImageStatus