This file is part of "Count Colours", a filter plugin for Adobe Photoshop Copyright (C) 2003-7 Toby Thain, toby@telegraphics.com.au This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Count Colours filter plugin for Photoshop ----------------------------------------- A Photoshop filter which counts distinct RGB colours in an image or selection. Also counts distinct values in single channels. Notes on source code -------------------- Source code and makefiles under GPL license are provided for MPW (Mac PowerPC Classic and Carbon targets), mingw32 (Windows/Win32 target). A CodeWarrior 6 project is also provided (targets PowerPC, 68K and Win32). A Photoshop SDK is required (available from Adobe Systems, http://www.adobe.com/). The SDK was also distributed with Photoshop 6.0 and earlier. Edit the makefiles ("countcolours.make" for MPW, "Makefile" for mingw32) to reflect the SDK's installed location. Check out the 'common' project next to the 'countcolours' directory, as this project depends on it: svn checkout http://telegraphics.com.au/svn/common/trunk common In order to build the Carbon plugin with an SDK prior to version 7.0, it is necessary to edit the SDK file :PhotoshopAPI:Resources:PIPL.r as follows: 1. find the line "case CodePowerPC:" 2. duplicate the next 15 lines 3. in the copy only, change "case CodePowerPC:" to "case CodeCarbonPowerPC:" and change the 5 occurrences of "pwpc" to "ppcb" Development systems ------------------- To build for classic MacOS or OS X: you can use the freely downloadable Apple's Macintosh Programmer's Workshop (MPW), http://developer.apple.com/tools/mpw-tools/ MPW runs on PowerPC and 68K Macs under Mac OS 9 or earlier, or in the Classic environment under OS X. To build for Win32: MinGW is a free GNU-based toolchain, freely downloadable from http://www.mingw.org/ MinGW can be hosted on virtually any UNIX or Linux system, or under Windows. Other free development systems that can be used to build plugins for Windows include: - Borland CBuilder - OpenWatcom (see H. Peter Heckert's notes in wpj/ directory) - MS Visual Studio Express (IDE cannot create DLL projects, but CLI tools will work) - MS Visual Toolkit 2003 (CLI tools) - Eclipse (http://eclipse.org/) is a world class free IDE that can be used with any of these tools. Metrowerks CodeWarrior is recommended as a commercial development system.