Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!decwrl!waikato.ac.nz!aukuni.ac.nz!cs7.cs.aukuni.ac.nz!kwel1 From: kwel1@cs.aukunic.ac.nz (Kevin Wells) Newsgroups: comp.sys.mac.programmer Subject: Creating an offscreen pixmap Summary: How to I create a 24-bit offscreen pixmap? Message-ID: Date: 17 Mar 91 23:19:49 GMT Sender: news@ccu1.aukuni.ac.nz (News Owner) Organization: University of Auckland, New Zealand. Lines: 10 I want to create a 24-bit offscreen pixmap. The pixmap should have 24-bits no matter what the colour resolution of the screen device is. Could somebody send me code which will do this to save me "reinventing the wheel". It is how to go about intializing a GDevice that I am unsure about. Inside Mac is a bit vague about this (a one paragraph description on page 126). Should I assign values directly to fields of the gDevice record like setting gdType to 2 (directRGB) or is there a cleaner way to initialize the device. Thanks in advance, Kevin.