Instead of antialiasing, we probably want better imageinterpolation.
The icons will come out looking better.
Also, added some headers that are required in some cases.
Cheers,
Dave
Index: /Users/dmaclach/src/opensource/macfuse/filesystems-objc/Support/
NSImage+IconData.m
===================================================================
--- /Users/dmaclach/src/opensource/macfuse/filesystems-objc/Support/
NSImage+IconData.m (revision 733)
+++ /Users/dmaclach/src/opensource/macfuse/filesystems-objc/Support/
NSImage+IconData.m (working copy)
@@ -19,7 +19,7 @@
//
// Created by ted on 12/28/07.
//
-#import <Foundation/Foundation.h>
+#import <AppKit/AppKit.h>
+#import <CoreServices/CoreServices.h>
#import <Accelerate/Accelerate.h>
#import "NSImage+IconData.h"
@@ -84,9 +84,11 @@
[NSGraphicsContext saveGraphicsState];
NSGraphicsContext* context =
[NSGraphicsContext graphicsContextWithBitmapImageRep:rep];
- [context setShouldAntialias:YES]; // TODO: Do we want this?
[NSGraphicsContext setCurrentContext:context];
+ NSImageInterpolation interpolation = [context imageInterpolation];
+ [context setImageInterpolation:NSImageInterpolationHigh];
[self drawInRect:rect fromRect:NSZeroRect
operation:NSCompositeCopy fraction:1.0];
+ [context setImageInterpolation:interpolation];
[NSGraphicsContext restoreGraphicsState];
// On Tiger, the above actually returns RGBA data. Probably a bug
in Tiger?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"macfuse-devel" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/macfuse-devel?hl=en
-~----------~----~----~----~------~----~------~--~---