Add PICT skeleton

This commit is contained in:
Gregory John Casamento 2019-11-22 02:52:31 -05:00
parent 10a81f89f3
commit c3bd876fa5
2 changed files with 41 additions and 0 deletions

View file

@ -26,5 +26,30 @@
@implementation NSPICTImageRep
+ (instancetype) imageRepWithData: (NSData *)imageData
{
return AUTORELEASE([[self alloc] initWithData: imageData]);
}
- (instancetype) initWithData: (NSData *)imageData
{
self = [super init];
if (self != nil)
{
ASSIGNCOPY(_imageData, imageData);
}
return self;
}
- (NSRect) boundingBox
{
return _boundingBox;
}
- (NSData *) PICTRepresentation
{
return [_pictRepresentation copy];
}
@end