Re: Trouble Printing NSImageView's Proportionally !
Re: Trouble Printing NSImageView's Proportionally !
- Subject: Re: Trouble Printing NSImageView's Proportionally !
- From: Scott Anguish <email@hidden>
- Date: Tue, 12 Nov 2002 14:24:22 -0500
On Tuesday, November 12, 2002, at 11:06 AM, Glen Thompson wrote:
Hi, I'm fairly new to Cocoa development so I apologize now if this is a
trivial question but it had me stumped for days now, here goes:
I have a document based application with multiple windows which allows
a user
to make various selections. Based on the selections I construct a
final window
displaying text and a number of NSImageView objects containing images
(all
jpg). All the NSImageView objects are set to display with Proportional
scaling
as the actual images are too large. All looks great on the screen but
when I
print the window (using the contentView) all the text prints just fine
but the
images appear to lose their scaling and get clipped. Everything I've
tried so
far make no difference, if anyone has any suggestions I would be very
grateful.
Your clipping problem is due to the standard behaviour of NSPrintInfo,
it is set to vertically tile, but horizontally clip. This is easily
fixed in your print code by sending the setHorizontalPagination: the
correct value (which escapes me completely at the moment.. ) (there
is a whole section on pagination in our book Cocoa Programming
(www.cocoaprogramming.net)
the other... I'm not sure..
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.