mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-21 02:51:14 +00:00
Extract protocol into private header file and use it from both places.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39838 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9edb35c362
commit
c3f90683a6
4 changed files with 64 additions and 26 deletions
|
@ -51,6 +51,7 @@
|
|||
#import "NSBitmapImageRep+PNG.h"
|
||||
#import "NSBitmapImageRep+PNM.h"
|
||||
#import "NSBitmapImageRep+ICNS.h"
|
||||
#import "NSBitmapImageRepPrivate.h"
|
||||
#import "GSGuiPrivate.h"
|
||||
|
||||
#include "nsimage-tiff.h"
|
||||
|
@ -58,31 +59,6 @@
|
|||
/* Maximum number of planes */
|
||||
#define MAX_PLANES 5
|
||||
|
||||
/* Backend methods (optional) */
|
||||
@interface NSBitmapImageRep (GSPrivate)
|
||||
// GNUstep extension
|
||||
+ (BOOL) _bitmapIsTIFF: (NSData *)data;
|
||||
+ (NSArray*) _imageRepsWithTIFFData: (NSData *)imageData;
|
||||
- (NSBitmapImageRep *) _initBitmapFromTIFF: (NSData *)imageData;
|
||||
- (NSBitmapImageRep *) _initFromTIFFImage: (TIFF *)image number: (int)imageNumber;
|
||||
- (void) _fillTIFFInfo: (NSTiffInfo*)info
|
||||
usingCompression: (NSTIFFCompression)type
|
||||
factor: (float)factor;
|
||||
|
||||
// Internal
|
||||
+ (int) _localFromCompressionType: (NSTIFFCompression)type;
|
||||
+ (NSTIFFCompression) _compressionTypeFromLocal: (int)type;
|
||||
- (void) _premultiply;
|
||||
- (void) _unpremultiply;
|
||||
- (NSBitmapImageRep *) _convertToFormatBitsPerSample: (NSInteger)bps
|
||||
samplesPerPixel: (NSInteger)spp
|
||||
hasAlpha: (BOOL)alpha
|
||||
isPlanar: (BOOL)isPlanar
|
||||
colorSpaceName: (NSString*)colorSpaceName
|
||||
bitmapFormat: (NSBitmapFormat)bitmapFormat
|
||||
bytesPerRow: (NSInteger)rowBytes
|
||||
bitsPerPixel: (NSInteger)pixelBits;
|
||||
@end
|
||||
|
||||
/**
|
||||
<unit>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue