mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-20 16:56:23 +00:00
Additional NSImage and NSBitmapImageRep work.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@2074 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c3a77368f8
commit
bd72fe90c1
4 changed files with 52 additions and 18 deletions
|
@ -248,7 +248,9 @@
|
|||
return [NSArray arrayWithObjects: NSTIFFPboardType, nil];
|
||||
}
|
||||
|
||||
//
|
||||
// Getting Information about the Image
|
||||
//
|
||||
- (int) bitsPerPixel
|
||||
{
|
||||
return bitsPerPixel;
|
||||
|
@ -279,7 +281,9 @@
|
|||
return bytesPerRow;
|
||||
}
|
||||
|
||||
//
|
||||
// Getting Image Data
|
||||
//
|
||||
- (unsigned char *) bitmapData
|
||||
{
|
||||
unsigned char *planes[MAX_PLANES];
|
||||
|
@ -324,11 +328,12 @@
|
|||
|
||||
- (BOOL) draw
|
||||
{
|
||||
[self bitmapData];
|
||||
return NO;
|
||||
}
|
||||
|
||||
//
|
||||
// Producing a TIFF Representation of the Image
|
||||
//
|
||||
+ (NSData *) TIFFRepresentationOfImageRepsInArray: (NSArray *)anArray
|
||||
{
|
||||
[self notImplemented: _cmd];
|
||||
|
@ -356,8 +361,9 @@
|
|||
return nil;
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// Setting and Checking Compression Types
|
||||
//
|
||||
+ (void) getTIFFCompressionTypes: (const NSTIFFCompression **)list
|
||||
count: (int *)numTypes
|
||||
{
|
||||
|
@ -388,8 +394,9 @@
|
|||
[self notImplemented: _cmd];
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// NSCoding protocol
|
||||
//
|
||||
- (void) encodeWithCoder: aCoder
|
||||
{
|
||||
[self notImplemented: _cmd];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue