Platforms to show: All Mac Windows Linux Cross-Platform

NSAdaptiveImageGlyphImageMBS class   New in 25.1

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Cocoa Text MBS MacBase Plugin 25.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The image for a NSAdaptiveImageGlyphImage.
Example
// we got a RTF file with a heic image for an emoji
Var f As New FolderItem("/Users/cs/Desktop/test.rtfd/AdaptiveImageGlyph-CEB73273-1BDD-47BD-8B7F-DBE3B09C14E10.heic", FolderItem.PathModes.Native)

// read it to string
Var b As BinaryStream = BinaryStream.Open(f)
Var data As String = b.Read(b.Length)

// initialize glyph
Var d As New NSAdaptiveImageGlyphMBS(data)

// render
Var i As NSAdaptiveImageGlyphImageMBS = d.imageForProposedSize(100, 100, 2)

// now ask for images in various formats
Var n As NSImageMBS = i.NSImage
Var p As Picture = i.Picture
Var c As CGImageMBS = i.CGImage

Break

This is an abstract class. You can't create an instance, but you can get one from various plugin functions.

This class has no sub classes.

Blog Entries

Release notes

Some methods using this class:

Some related classes:


The items on this page are in the following plugins: MBS MacBase Plugin.


NSActionCellMBS   -   NSAdaptiveImageGlyphMBS


The biggest plugin in space...