#include "camtypes.h"
#include "colcontx.h"
#include "colourix.h"
#include "colormgr.h"
Go to the source code of this file.
Defines | |
#define | new CAM_DEBUG_NEW |
#define | OUTSIDE_LIMIT(a, b) ((ABS((a) - (b))) > (ErrorLimit)) |
To determine if two indexed colours share a common definition. | |
#define | JASONSWAP(X, Y, VARTYPE) |
This swaps the definitions of the two IndexedColours. |
|
Value: { \ VARTYPE T; \ memcpy(&(T), &(X), sizeof(VARTYPE)); \ memcpy(&(X), &(Y), sizeof(VARTYPE)); \ memcpy(&(Y), &(T), sizeof(VARTYPE)); \ }
The implementation swaps the Info, SourceColour, & Name fields (i.e. the colour definition) ONLY. That is, the usage count for each object and the caches are not swapped. The caches for both colours are in fact flushed, to guarantee their integrity. Definition at line 1798 of file colourix.cpp. |
|
Definition at line 116 of file colourix.cpp. |
|
To determine if two indexed colours share a common definition.
This version of the function takes an accuracy parameter, to allow 'rough' comparisons to be made. This is used when importing colours so that we don't have to store 32bit colour values in EPS files and so on in order for them to be recognised as an existing colour when re-importing. NOTE especially that this does NOT compare the names of the colours Definition at line 802 of file colourix.cpp. |