Mac Developer Library

Developer

ITLibArtwork Class Reference

Options
Deployment Target:

On This Page

ITLibArtwork

Inheritance


Not Applicable

Conforms To


Not Applicable

Import Statement


Not Applicable Not Applicable

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

  • image image Property

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

    Declaration

    Objective-C

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

  • imageData imageData Property

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

    Declaration

    Objective-C

    @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

    Objective-C

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

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

    Declaration

    Objective-C

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

    Constants

    • ITLibArtworkFormatNone

      ITLibArtworkFormatNone

      The image data format is not known.

    • ITLibArtworkFormatBitmap

      ITLibArtworkFormatBitmap

      The image data corresponds to a bitmap.

    • ITLibArtworkFormatJPEG

      ITLibArtworkFormatJPEG

      The image data corresponds to a JPEG image.

    • ITLibArtworkFormatJPEG2000

      ITLibArtworkFormatJPEG2000

      The image data corresponds to a JPEG2000 image.

    • ITLibArtworkFormatGIF

      ITLibArtworkFormatGIF

      The image data corresponds to a GIF image.

    • ITLibArtworkFormatPNG

      ITLibArtworkFormatPNG

      The image data corresponds to a PNG image.

    • ITLibArtworkFormatBMP

      ITLibArtworkFormatBMP

      The image data corresponds to a BMP image.

    • ITLibArtworkFormatTIFF

      ITLibArtworkFormatTIFF

      The image data corresponds to a TIFF image.

    • ITLibArtworkFormatPICT

      ITLibArtworkFormatPICT

      The image data corresponds to a PICT image.