Skip navigation.
 
mlscaling down without NSImage while printing
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

Related mailsAuthorDate
mlscaling down without NSImage while printing Hidetomo Katsura Dec 23, 18:20
mlRe: scaling down without NSImage while printing Hidetomo Katsura Dec 23, 20:11