Commit skeleton

This commit is contained in:
Gregory John Casamento 2019-11-22 05:07:45 -05:00
parent c3bd876fa5
commit 943a323002
2 changed files with 25 additions and 0 deletions

View file

@ -41,6 +41,7 @@ extern "C" {
NSData *_imageData;
NSData *_pictRepresentation;
NSRect _boundingBox;
NSUInteger _position;
}
+ (instancetype) imageRepWithData: (NSData *)imageData;

View file

@ -36,7 +36,15 @@
self = [super init];
if (self != nil)
{
BOOL result = NO;
ASSIGNCOPY(_imageData, imageData);
result = [self _readPICTHeader];
if (result == NO)
{
RELEASE(self);
return nil;
}
}
return self;
}
@ -51,5 +59,21 @@
return [_pictRepresentation copy];
}
- (BOOL) _readPICTHeader
{
_position = 512;
return NO;
}
- (BOOL) _drawPICT
{
return NO;
}
- (BOOL) draw
{
return [self _drawPICT];
}
@end