• 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
Problem taking scale into account while printing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem taking scale into account while printing


  • Subject: Problem taking scale into account while printing
  • From: Joseph Jones <email@hidden>
  • Date: Fri, 7 Mar 2003 09:46:26 -0800

Hi,

I seem to be unable to take scale into account in my printing and getting a good print out. I take the scale set in the print info and adjust the number of pages I am printing by that. So, if normally I wold be printing 6 pages at 100%, then I calculate 3 pages at 50%. I then return the appropriate page rect from rectForPage such that, if the normal pageWidth/Height at 100% is 100, then the new pageWidth/Height is 200. However, when drawRect is called, the bounding rect passed in is still the original 100x100 rect.

OK, NP, I'll just scale the drawing surface using an affine transform and setting scaleBy to the scale set from the print info. However, when I view the preview of the print out, my drawing i shifted up and to the left so that it doesn't fit on the page. The higher the scale factor, the worse it gets till it disappears off the printed page.

Can anyone tell me what I am doing wrong here?

Thanx,
joe
_______________________________________________
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.

  • Prev by Date: Re: Can I require 10.2?
  • Next by Date: Programmatically taking a screenshot
  • Previous by thread: Expanded TableView Column layouts
  • Next by thread: Programmatically taking a screenshot
  • Index(es):
    • Date
    • Thread