Platforms to show: All Mac Windows Linux Cross-Platform

NSImageSymbolConfigurationMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Cocoa Drawing MBS MacBase Plugin 22.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Function: An object that contains the specific font, style, and weight attributes to apply to a symbol image.
Example:
Dim config As NSImageSymbolConfigurationMBS = NSImageSymbolConfigurationMBS.configurationWithPointSize(40, 0)
Dim n As NSImageMBS = NSImageMBS.imageWithSystemSymbolName("trash")
Dim o As NSImageMBS = n.imageWithSymbolConfiguration(config)

Backdrop = o.CopyPictureWithAlpha
Notes:
Symbol image configuration objects include details such as the point size, scale, text style, and weight to apply to your symbol image. The system uses these details to determine which variant of the image to use and how to scale or style the image.

NSImageSymbolConfiguration objects are immutable after you create them. If you use the configurationByApplyingConfiguration method on the object, the new image attributes replace any previous attributes you supplied. After creating a symbol configuration object, assign it to the symbolConfiguration property of the NSImageViewMBS object you use to display the image. If you draw the image directly, use the imageWithSymbolConfiguration method to create a new image that contains the new attributes.

For design guidance, see Human Interface Guidelines.
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.

Some methods using this class:

Some properties using for this class:

Blog Entries

Xojo Developer Magazine


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


NSImageRepMBS   -   NSImageViewMBS


💬 Ask a question or report a problem
The biggest plugin in space...