siox.cpp revision 893eb8472f33355dcb60a3c17347871b325fa1dc
40e5cf3e8f0ddda79b1650df77d0f847a22822bfJazzyNico Copyright 2005, 2006 by Gerald Friedland, Kristian Jantz and Lars Knipping
88395eed42de4d59f54795b60c8c0a7ab881e153JazzyNico Conversion to C++ for Inkscape by Bob Jamison
88395eed42de4d59f54795b60c8c0a7ab881e153JazzyNico Released under GNU GPL, read the file 'COPYING' for more information
88395eed42de4d59f54795b60c8c0a7ab881e153JazzyNico//########################################################################
88395eed42de4d59f54795b60c8c0a7ab881e153JazzyNico//########################################################################
646e07284c35ae746e8a0cf0698098e116ebb5a3JazzyNico * Convert integer A, R, G, B values into an pixel value.
646e07284c35ae746e8a0cf0698098e116ebb5a3JazzyNicostatic unsigned long getRGB(int a, int r, int g, int b)
646e07284c35ae746e8a0cf0698098e116ebb5a3JazzyNico if (a<0) a=0;
646e07284c35ae746e8a0cf0698098e116ebb5a3JazzyNico if (r<0) r=0;
646e07284c35ae746e8a0cf0698098e116ebb5a3JazzyNico if (g<0) g=0;
88395eed42de4d59f54795b60c8c0a7ab881e153JazzyNico if (b<0) b=0;