/* ** Newton Developer Technical Support Sample Code ** ** Photo Album - demonstrates displaying greyscale bitmap pictures ** ** by David Fedor, Newton Developer Technical Support ** ** Copyright © 1996 by Apple Computer, Inc. All rights reserved. ** ** You may incorporate this sample code into your applications without ** restriction. This sample code has been provided "AS IS" and the ** responsibility for its operation is 100% yours. You are not ** permitted to modify and redistribute the source as "DTS Sample Code." ** If you are going to re-distribute the source, we require that you ** make it clear in the source that the code was descended from ** Apple-provided sample code, but that you've made changes. */ This sample shows how to get greyscale PICTs into your Newton packages. It turns out to be quite easy; just use GetNamedResource to get the PICT resource and give it the class 'picture. For best results (and to save package space) you should use any Mac graphics editor to convert your images to 16 shades of greyscale and use the standard 16 greys color palette, but it isn't strictly necessary to do this, as even a 256 color PICT will be converted on the Newton device if necessary.