Revision: 12908
http://sourceforge.net/p/skim-app/code/12908
Author: hofman
Date: 2022-05-10 09:30:53 +0000 (Tue, 10 May 2022)
Log Message:
-----------
get bitmap from clipview rather than pdfview,sowe don't get the scrollers
Modified Paths:
--------------
trunk/SKSnapshotWindowController.m
Modified: trunk/SKSnapshotWindowController.m
===================================================================
--- trunk/SKSnapshotWindowController.m 2022-05-09 17:50:07 UTC (rev 12907)
+++ trunk/SKSnapshotWindowController.m 2022-05-10 09:30:53 UTC (rev 12908)
@@ -479,7 +479,8 @@
- (NSImage *)thumbnailWithSize:(CGFloat)size {
NSRect bounds = [pdfView visibleContentRect];
- NSBitmapImageRep *imageRep = [pdfView
bitmapImageRepCachingDisplayInRect:bounds];
+ NSClipView *clipView = [[pdfView scrollView] contentView];
+ NSBitmapImageRep *imageRep = [clipView
bitmapImageRepCachingDisplayInRect:[pdfView convertRect:bounds
toView:clipView]];
NSAffineTransform *transform = nil;
NSSize thumbnailSize = thumbnailSize = bounds.size;
CGFloat shadowBlurRadius = 0.0;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit