• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
scaling down without NSImage while printing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

scaling down without NSImage while printing


  • Subject: scaling down without NSImage while printing
  • From: Hidetomo Katsura <email@hidden>
  • Date: Thu, 23 Dec 2004 09:20:40 -0800

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

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: scaling down without NSImage while printing
      • From: Hidetomo Katsura <email@hidden>
  • Prev by Date: Trouble with mouseMoved and custom views
  • Next by Date: Re: Why is indexOfObjectIdenticalTo: *far* faster than indexOfObject: ?
  • Previous by thread: Re: Trouble with mouseMoved and custom views
  • Next by thread: Re: scaling down without NSImage while printing
  • Index(es):
    • Date
    • Thread