Revision: 5007
http://skim-app.svn.sourceforge.net/skim-app/?rev=5007&view=rev
Author: hofman
Date: 2008-11-27 18:29:30 +0000 (Thu, 27 Nov 2008)
Log Message:
-----------
Reimplement -[PDFPage image], as it's documented for template support.
Modified Paths:
--------------
trunk/PDFPage_SKExtensions.h
trunk/PDFPage_SKExtensions.m
Modified: trunk/PDFPage_SKExtensions.h
===================================================================
--- trunk/PDFPage_SKExtensions.h 2008-11-27 17:56:53 UTC (rev 5006)
+++ trunk/PDFPage_SKExtensions.h 2008-11-27 18:29:30 UTC (rev 5007)
@@ -56,6 +56,7 @@
- (NSRect)foregroundBox;
+- (NSImage *)image;
- (NSImage *)thumbnailWithSize:(float)size forBox:(PDFDisplayBox)box;
- (NSImage *)thumbnailWithSize:(float)size forBox:(PDFDisplayBox)box
readingBarRect:(NSRect)readingBarRect;
- (NSImage *)thumbnailWithSize:(float)size forBox:(PDFDisplayBox)box
shadowBlurRadius:(float)shadowBlurRadius shadowOffset:(NSSize)shadowOffset
readingBarRect:(NSRect)readingBarRect;
Modified: trunk/PDFPage_SKExtensions.m
===================================================================
--- trunk/PDFPage_SKExtensions.m 2008-11-27 17:56:53 UTC (rev 5006)
+++ trunk/PDFPage_SKExtensions.m 2008-11-27 18:29:30 UTC (rev 5007)
@@ -154,6 +154,10 @@
return *rectPtr;
}
+- (NSImage *)image {
+ return [self thumbnailWithSize:0.0 forBox:kPDFDisplayBoxCropBox
shadowBlurRadius:0.0 shadowOffset:NSZeroSize readingBarRect:NSZeroRect];
+}
+
- (NSImage *)thumbnailWithSize:(float)size forBox:(PDFDisplayBox)box {
return [self thumbnailWithSize:size forBox:box readingBarRect:NSZeroRect];
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit