Revision: 5618
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5618&view=rev
Author:   hofman
Date:     2009-09-02 09:21:22 +0000 (Wed, 02 Sep 2009)

Log Message:
-----------
set image interpolation to high when anti-aliasing

Modified Paths:
--------------
    trunk/SKPDFView.m

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2009-09-01 14:46:28 UTC (rev 5617)
+++ trunk/SKPDFView.m   2009-09-02 09:21:22 UTC (rev 5618)
@@ -355,12 +355,16 @@
 
 - (void)drawPage:(PDFPage *)pdfPage {
     
-       // Let PDFView do most of the hard work.
-       [super drawPage: pdfPage];
+    CGContextRef context = [[NSGraphicsContext currentContext] graphicsPort];
        
-    CGContextRef context = [[NSGraphicsContext currentContext] graphicsPort];
     CGContextSaveGState(context);
     
+    // smooth graphics when anti-aliasing
+    [[NSGraphicsContext currentContext] setImageInterpolation:[[NSUserDefaults 
standardUserDefaults] boolForKey:SKShouldAntiAliasKey] ? 
NSImageInterpolationHigh : NSImageInterpolationDefault];
+    
+    // Let PDFView do most of the hard work.
+    [super drawPage: pdfPage];
+       
     [self transformCGContext:context forPage:pdfPage];
     SKCGContextSetDefaultRGBColorSpace(context);
     


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to