Instance Property

backgroundColor

The background color for the image.

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 clearColor method of NSColor.

See Also

Managing Drawing Options

valid

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

NSImageResizingMode

The resizing mode for the image.