ianh@resmel.bhp.com.au (Ian Hoyle) (06/23/91)
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