Instance Property

valid

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

Declaration

@property(getter=isValid, readonly) BOOL valid;

Discussion

If you created the image with an existing image file, but the corresponding image data is not yet loaded into memory, this method loads the data and expands it as needed. If the receiver contains no image representations and no associated image file, this method creates a valid cached image representation and initializes it to the default bit depth. If the file or URL from which the image was initialized is nonexistent, or the data in an existing file is invalid, this method returns NO.

See Also

Managing Drawing Options

backgroundColor

The background color for the image.

NSImageResizingMode

The resizing mode for the image.