Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!uunet!mcsun!ukc!abekrd!ecmwf!ecmwf!mab From: mab@ecmwf.co.uk (Baudouin Raoult) Newsgroups: comp.sys.mac.programmer Subject: Color TPrPort ? Message-ID: <1991Apr24.090146.15878@ecmwf.co.uk> Date: 24 Apr 91 09:01:46 GMT Sender: usenet@ecmwf.co.uk (NEWS deafult user) Reply-To: mab@ecmwf.co.uk (Baudouin Raoult) Organization: ECMWF Lines: 51 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). Can you print using color QD ???? -- This is the definition of the TPrPort TPrPort = RECORD {This is the "PrPeek" record.} GPort: GrafPort; {The Printer's graf port.} GProcs: QDProcs; {..and its procs} lGParam1: LongInt; {16 bytes for private parameter storage.} lGParam2: LongInt; lGParam3: LongInt; lGParam4: LongInt; fOurPtr: Boolean; {Whether the PrPort allocation was done by us.} fOurBits: Boolean; {Whether the BitMap allocation was done by us.} END; --- This is how it must be for color. TPrPort = RECORD {This is the "PrPeek" record.} GPort: CGrafPort; {The Printer's COLOR graf port.} GProcs: CQDProcs; {..and its COLOR procs} lGParam1: LongInt; {16 bytes for private parameter storage.} lGParam2: LongInt; lGParam3: LongInt; lGParam4: LongInt; fOurPtr: Boolean; {Whether the PrPort allocation was done by us.} fOurBits: Boolean; {Whether the BitMap allocation was done by us.} END; -- --------------------------------------------------- Baudouin Raoult. European Center for Medium Range Weather Forecast Reading, UK ---------------------------------------------------