[NSWindow print:] and button images
[NSWindow print:] and button images
- Subject: [NSWindow print:] and button images
- From: "Phil Barrett" <email@hidden>
- Date: Fri, 27 Sep 2002 13:01:35 +0100
I'm using [NSWindow print:] to easily print a window containing multiple
views, automatically scaling it to fit the page.
Problem is, images on NSButtonCells in the window are not scaled correctly
and are all cropped by their frames, giving a dreadful result. This includes
the Aqua traffic lights, so I'm pretty sure it's not my fault.
If I call [[window contentView] print:] or [[window _borderView] print:] the
bitmaps appear to be correct (although I get vertical stripes on the
window's title bar), but since the window isn't scaled to fit the page, the
result is either cropped or flows onto multiple pages.
Also, images with alpha print with a black background, rather than the
background of their NSButtonCell or the view behind.
Any ideas?
Phil
_______________________________________________
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.