home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!wupost!micro-heart-of-gold.mit.edu!news.bbn.com!news.bbn.com!news
- From: hagstrop@oberon.mathcs.carleton.edu (Paul Hagstrom)
- Newsgroups: comp.sys.next.programmer
- Subject: Why is my PostScript text upside down? Help! Help!
- Date: 7 Sep 1992 04:20:09 GMT
- Lines: 32
- Message-ID: <lalm3pINNpm5@news.bbn.com>
- NNTP-Posting-Host: bbn.com
-
- Ok, I'm at a loss.. I've got a plotting program that I'm trying to write, and
- here's what's happening..
-
- I am trying to draw a grid, and on that grid I am tryint to draw numbers. So,
- what I do is this:
-
- PSmoveto(0,grid);
- sprintf(buffer,"(0.00,%f7.2)",grid);
- PSshow(buffer);
-
- Easy enough. Now, the problem is this: ALL OF THE TEXT IS UPSIDE DOWN! It is
- reflected vertically from what it should be. Now, of course, the first thing
- to think is: oh! The coordinates must be flipped! But, [self isFlipped]
- returns NO, and I never specifically tell it to setFlipped:YES, which,
- according to the documentation, I should have to do explicitly if the
- coordinates are to be flipped.
-
- What can I do? PSrotate(180.0) won't solve my problem because then I get
- numbers that a right-side-up, but backwards! What I need to do is reflect them
- vertically, and I'm not sure how. I don't want to flip the coordinates just to
- print the text (that seems unwise, and in the documentation, it is said that
- setFlipped: should only be called once -- preferably before drawing, like in an
- initialization routine) and then flip them back to continue with the program,
- do I?
-
- Help!
-
- Thanks to anyone who knows immediately what my problem is and can tell me..
- --
- schmotsignature.
- Paul Hagstrom
- (hagstrop@carleton.edu)
-