The "PixelWorld classes 1.2.cpt" archive contains THINK C 5.0 source code for two new classes that can be used as part of the standard THINK Class Library 1.x.x.
The CPixelWorld class is a subclass of CBitMap designed to maintain a color or grayscale offscreen drawing environment using standard Color QuickDraw. An offscreen color graphics device (GDevice) and an offscreen color graphics port (CGrafPort) are used to maintain this offscreen world. This implementation supports 1,2,4 and 8 bit pixel depths. Pixel depths of 16 and 32 bits are not currently supported.
The CPixelWorldPane class is a subclass of CPanorama that displays a color or grayscale image that is maintained offscreen by a CPixelWorld object.
*** Note: This implementation does not depend upon any 32-Bit QuickDraw features. Future versions of the PixelWorld classes will provide support for 16 and 32 bit pixel depths, and for GWorlds under 32-Bit QuickDraw.
2) Contents/Installation
After expanding the "PixelWorld classes 1.2.cpt" archive you should have a folder called "PixelWorld classes 1.2" that contains the following seven files:
/* The TeachText document you are reading*/
1. About PixelWorld classes
/* The PixelWorld class source & info files */
2. CPixelWorld.c
3. CPixelWorld.h
4. CPixelWorld.info
/* The PixelWorldPane class source & info files*/
5. CPixelWorldPane.c
6. CPixelWorldPane.h
7. CPixelWorldPane.info
You can place the "PixelWorld classes 1.2" folder anywhere in the THINK C directory tree. However, I recommend that you place it inside the "THINK Class Library 1.x.x" folder along with the standard TCL classes so that the PixelWorld source files can be found easily.
3) Help/Information
Please, feel free to contact me by regular mail or E-mail. The best/fastest way to contact me is by sending E-mail to the internet address below:*
I welcome any questions, comments, or criticisms concerning the PixelWorld classes. If you choose to modify or make improvements to either of these classes, please notify me about your improvements and send me the modied source code. I will try to include your modifications in an updated version of the PixelWorld classes.
5) License Agreement
All portions of this source code are property of Vincent R. Vann, Jr. I, Vincent R. Vann, Jr., grant you the right to freely distribute this source code and to use all or part of this source code in all software including commercial, freeware, shareware and private applications. However, all software that uses any part of or all of this source code must display a copyright notice indicating that either all of or portions of this source code are used in the software. I also grant you permission to alter and make improvements to this source code, but only if all modifications are returned to me by whatever means are available, either in written or electronic form. You must also accept that I retain the right to include any part of your modifications or all of your modifications in future releases of this source code. The description and version history sections in the *.info files may be ammended for documentation purposes. This license agreement and the copyright notice below must be maintained intact and must be included with all distributions of this source code at all times.
6) Copyright Notice
This implementation is based in part on material copyrighted by Symantec Corporation and Apple Computer, Inc.