Mac Developer Library

Developer

ITLibArtwork Class Reference

Options
Deployment Target:

On This Page

ITLibArtwork

The ITLibArtwork class represents the artwork attached to a track (media item).

  • The NSImage representation of this artwork. (read-only)

    Declaration

    @property (readonly, nonatomic, retain) NSImage * image;

  • The raw image data of this artwork in the format specified by imageDataFormat. (read-only)

    Declaration

    @property (readonly, nonatomic, retain) NSData * imageData;

  • The format of the data returned by the imageData method. See the ITLibArtworkFormat enumeration for possible values. (read-only)

    Declaration

    @property (readonly, nonatomic, assign) ITLibArtworkFormat imageDataFormat;

  • These constants specify the possible formats of the data returned by ITLibArtwork's imageData method.

    Declaration

    enum { ITLibArtworkFormatNone = 0, ITLibArtworkFormatBitmap = 1, ITLibArtworkFormatJPEG = 2, ITLibArtworkFormatJPEG2000 = 3, ITLibArtworkFormatGIF = 4, ITLibArtworkFormatPNG = 5, ITLibArtworkFormatBMP = 6, ITLibArtworkFormatTIFF = 7, ITLibArtworkFormatPICT = 8 };

    Constants

    • ITLibArtworkFormatNone

      The image data format is not known.

    • ITLibArtworkFormatBitmap

      The image data corresponds to a bitmap.

    • ITLibArtworkFormatJPEG

      The image data corresponds to a JPEG image.

    • ITLibArtworkFormatJPEG2000

      The image data corresponds to a JPEG2000 image.

    • ITLibArtworkFormatGIF

      The image data corresponds to a GIF image.

    • ITLibArtworkFormatPNG

      The image data corresponds to a PNG image.

    • ITLibArtworkFormatBMP

      The image data corresponds to a BMP image.

    • ITLibArtworkFormatTIFF

      The image data corresponds to a TIFF image.

    • ITLibArtworkFormatPICT

      The image data corresponds to a PICT image.