Implemented [TIFFRepresentationOfImageRepsInArray] and

[TIFFRepresentationOfImageRepsInArray:usingCompression:factor:]


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10678 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2001-08-11 18:33:40 +00:00
parent 172f01e219
commit f9054d3ecf

View file

@ -382,8 +382,18 @@
//
+ (NSData*) TIFFRepresentationOfImageRepsInArray: (NSArray *)anArray
{
// TODO
[self notImplemented: _cmd];
//FIXME: This only outputs one of the ImageReps
NSEnumerator *enumerator = [anArray objectEnumerator];
NSImageRep *rep;
while ((rep = [enumerator nextObject]) != nil)
{
if ([rep isKindOfClass: self])
{
return [(NSBitmapImageRep*)rep TIFFRepresentation];
}
}
return nil;
}
@ -391,8 +401,19 @@
usingCompression: (NSTIFFCompression)type
factor: (float)factor
{
// TODO
[self notImplemented: _cmd];
//FIXME: This only outputs one of the ImageReps
NSEnumerator *enumerator = [anArray objectEnumerator];
NSImageRep *rep;
while ((rep = [enumerator nextObject]) != nil)
{
if ([rep isKindOfClass: self])
{
return [(NSBitmapImageRep*)rep TIFFRepresentationUsingCompression: type
factor: factor];
}
}
return nil;
}