Instance Method

initWithData:

Returns an NSPICTImageRep object initialized with the specified data.

Declaration

- (instancetype)initWithData:(NSData *)pictData;

Parameters

pictData

A data object containing the PICT data.

Return Value

An initialized NSPICTImageRep or nil if the object could not be initialized. Initialization may fail if the data does not conform to the PICT file format.

Discussion

If the PICT data is obtained directly from a PICT file or document, this method ignores most of the 512-byte header that occurs before the start of the actual picture data. It may retrieve some relevant meta information from the header.

See Also

Creating an NSPICTImageRep

+ imageRepWithData:

Creates and returns an NSPICTImageRep object initialized with the specified data.