Instance Property

backgroundColor

The background color for the image.

Declaration

@NSCopying var backgroundColor: NSColor { get set }

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.

See Also

Managing Drawing Options

var isValid: Bool

A Boolean value that indicates whether it is possible to draw an image representation.

enum NSImage.ResizingMode

The resizing mode for the image.