FROM : Hidetomo Katsura
DATE : Thu Dec 23 18:20:40 2004
the following code works fine on 10.3.7 but fails on 10.2.8 while
printing. i need to scale srcRect down to dstRect to make it fit in the
page size.
image = [[NSImage alloc] initWithSize:srcRect];
[image lockFocus];
[view drawRect:srcRect];
[image unlockFocus];
[image drawInRect:dstRect fromRect:srcRect operation:NSCompositeCopy
fraction:1.0];
[image release];
how can i scale it down without using NSImage on 10.2.8 while printing?
any suggestions?
thanks in advance,
katsura
DATE : Thu Dec 23 18:20:40 2004
the following code works fine on 10.3.7 but fails on 10.2.8 while
printing. i need to scale srcRect down to dstRect to make it fit in the
page size.
image = [[NSImage alloc] initWithSize:srcRect];
[image lockFocus];
[view drawRect:srcRect];
[image unlockFocus];
[image drawInRect:dstRect fromRect:srcRect operation:NSCompositeCopy
fraction:1.0];
[image release];
how can i scale it down without using NSImage on 10.2.8 while printing?
any suggestions?
thanks in advance,
katsura
| Related mails | Author | Date |
|---|---|---|
| Hidetomo Katsura | Dec 23, 18:20 | |
| Hidetomo Katsura | Dec 23, 20:11 |






Cocoa mail archive

