31 , mChannels(static_cast<int>(TYPE_RGBA))
39 , mChannels(static_cast<int>(
Type))
47 , mChannels(static_cast<int>(
Type))
60 #if HYDRAX_IMAGE_CHECK_PIXELS == 1
65 HydraxLOG(
"Error in Image::getValue, x = " + Ogre::StringConverter::toString(
x)
66 +
" y = " + Ogre::StringConverter::toString(
y)
67 +
" Channel = " + Ogre::StringConverter::toString(c));
78 #if HYDRAX_IMAGE_CHECK_PIXELS == 1
83 HydraxLOG(
"Error in Image::getValue, x = " + Ogre::StringConverter::toString(
x)
84 +
" y = " + Ogre::StringConverter::toString(
y)
85 +
" Channel = " + Ogre::StringConverter::toString(c));
91 int xINT =
static_cast<int>(
x),
92 yINT =
static_cast<int>(
y);
108 return A*_xDIFF*_yDIFF +
116 #if HYDRAX_IMAGE_CHECK_PIXELS == 1
120 HydraxLOG(
"Error in Image::getPixel, x = " + Ogre::StringConverter::toString(
x)
121 +
" y = " + Ogre::StringConverter::toString(
y));
129 for(
int k = 0; k < 4; k++)
141 return Pixel(v[0], v[1], v[2], v[3]);
146 #if HYDRAX_IMAGE_CHECK_PIXELS == 1
150 HydraxLOG(
"Error in Image::getPixel, x = " + Ogre::StringConverter::toString(
x)
151 +
" y = " + Ogre::StringConverter::toString(
y));
159 for(
int k = 0; k < 4; k++)
171 return Pixel(v[0], v[1], v[2], v[3]);
176 #if HYDRAX_IMAGE_CHECK_PIXELS == 1
181 HydraxLOG(
"Error in Image::setValue, x = " + Ogre::StringConverter::toString(
x)
182 +
" y = " + Ogre::StringConverter::toString(
y)
183 +
" Channel = " + Ogre::StringConverter::toString(c));
194 #if HYDRAX_IMAGE_CHECK_PIXELS == 1
198 HydraxLOG(
"Error in Image::setPixel, x = " + Ogre::StringConverter::toString(
x)
199 +
" y = " + Ogre::StringConverter::toString(
y));