home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / mac / programm / 18856 < prev    next >
Encoding:
Text File  |  1992-11-24  |  1.4 KB  |  49 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!usc!sdd.hp.com!nigel.msen.com!caen!uwm.edu!ux1.cso.uiuc.edu!news.cso.uiuc.edu!uxa.cso.uiuc.edu!yzg9890
  3. From: yzg9890@uxa.cso.uiuc.edu (yzg9890)
  4. Subject: Problems with Mac Printing Manager
  5. Message-ID: <By7Cz1.8uE@news.cso.uiuc.edu>
  6. Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
  7. Organization: University of Illinois at Urbana
  8. Date: Tue, 24 Nov 1992 04:11:24 GMT
  9. Lines: 38
  10.  
  11. I got into the trouble when I tried to print out color shaded image from a
  12. LaserWriter. I expected to get a gray scale image, but I got a black image
  13. instead. Can anybody help me out?
  14.  
  15. Following is what I did:
  16.  
  17. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  18. void printImage()
  19. {
  20. TPPrPort    pPort;
  21. THPrint     itPrint; 
  22.  
  23.      tPrint = (THPrint)NewHandle(sizeof(TPrint));
  24.      PrOpen();
  25.      PrintDefault(tPrint);
  26.  
  27.      pPort = PrOpenDoc(tPrint, nil, nil);
  28.      PrOpenPage(pPort, nil);
  29.      
  30.      /* draw shaded image */
  31.      drawImage();
  32.  
  33.      PrClosePage(pPort);
  34.      PrCloseDoc(pPort);
  35.  
  36.      PrClose();
  37. }
  38. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  39.  
  40. Another problem: if the print method is spool, the Inside Mac II says that
  41.          one needs to "swap your program out of your memery" before
  42.          calls PrPicFile(). Can someone show me an example about
  43.          what this "swap" should look like?
  44.  
  45. Please send your help to mail address, your help is highly appreciated.
  46.  
  47.  
  48. joe
  49.