The background color for the image.
SDK
- macOS 10.0+
Framework
- App
Kit
Declaration
@property(copy) NSColor *backgroundColor;
Discussion
The background color is visible only if the drawn image representation does not completely cover all of the pixels available for the image's current size. The background color is ignored for cached image representations; such caches are always created with a white background. Assigning a new background color does not cause the receiver to recache itself.
The default color is transparent, as returned by the clear
method of NSColor
.