Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!uunet!munnari.oz.au!bruce!merlin!ianh From: ianh@resmel.bhp.com.au (Ian Hoyle) Newsgroups: comp.sys.mac.programmer Subject: pixel-map creation ... advice/example code needed Message-ID: Date: 23 Jun 91 03:36:07 GMT Sender: usenet@resmel.bhp.com.au (USEnet nntp account) Organization: BHP Research - Melbourne Laboratories, AUSTRALIA Lines: 30 Posted for a colleague here: "Can anyone supply assistance with the creation of pixel-maps on the Macintosh? I have an array of pixel data which I would like to pass into a pixel-map data structure and have this displayed on the mac witha colour table that is related to the pixel data. If anyone has any advice/example code that they could share (either Pascal, C or Fortran) to explain the details, this would be greatly appreciated. The idea (I think - I can't seem to get it to work) is to create a new pixel map with the NewCpixmap function and change the pointers in the pixel-map data structure and colour tanble. So far I have seen a few examples of pixel-map creation using the copypixelmap function, but this doesn't provide the details of the pixel-map data structure or the passing of pixel data directly to the structure (Using the copypixelmap function most programmers seem to create quickdraw objects using the text/rectangle ... functions, then copy an area of the window to another window structure)" ian -- Ian Hoyle /\/\ Image Processing & Data Analysis Group / / /\ BHP Research - Melbourne Laboratories / / / \ 245 Wellington Rd, Mulgrave, 3170 / / / /\ \ AUSTRALIA \ \/ / / / \ / / / Phone : +61-3-560-7066 \/\/\/ FAX : +61-3-561-6709 E-mail : ianh@resmel.bhp.com.au