Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!stanford.edu!neon.Stanford.EDU!kaufman From: kaufman@neon.Stanford.EDU (Marc T. Kaufman) Newsgroups: comp.sys.mac.programmer Subject: Re: Color TPrPort ? Message-ID: <1991Apr27.024747.4218@neon.Stanford.EDU> Date: 27 Apr 91 02:47:47 GMT References: <1991Apr24.090146.15878@ecmwf.co.uk> Organization: Computer Science Department, Stanford University, Ca , USA Lines: 21 In article <1991Apr24.090146.15878@ecmwf.co.uk> mab@ecmwf.co.uk (Baudouin Raoult) writes: > I am writing a printer driver, and I'd like to know >if it is possible to create a Color TPrPort. >In a printer driver, you allocate a TPrPort, which starts >with a GrafPort, and give it to the application. >The application then just draws into this port. >But a GrafPort (b & w) is not a CGrafPort (color) and >QDProcs ( b & w ) are not CQDProcs (color). Yes, you can give back the kind of port you want. But since there are more bytes in a TPrPort+CQDProcs than in a TPrPort its probably best to ignore any TPrPort space given to you by the application and just return your own. I only know of one (1) application that even tried to give me port space. > Can you print using color QD ???? Certainly. After all, its YOUR driver... and your bottlenecks. Marc Kaufman (kaufman@Neon.stanford.edu)