Starting resize support.

This commit is contained in:
James Grogan 2022-11-14 14:57:50 +00:00
parent cea3d2c39f
commit 9ade0e2d4b
26 changed files with 197 additions and 44 deletions

View file

@ -30,9 +30,9 @@ void Image<T>::setPixelValue(unsigned idx, unsigned jdx, const Color& color)
initialize();
}
mData[jdx*getBytesPerRow() + idx*3] = static_cast<T>(color.GetR());
mData[jdx*getBytesPerRow() + idx*3 + 1] = static_cast<T>(color.GetG());
mData[jdx*getBytesPerRow() + idx*3 + 2] = static_cast<T>(color.GetB());
mData[jdx*getBytesPerRow() + idx*3] = static_cast<T>(color.getR());
mData[jdx*getBytesPerRow() + idx*3 + 1] = static_cast<T>(color.getG());
mData[jdx*getBytesPerRow() + idx*3 + 2] = static_cast<T>(color.getB());
}
template<typename T>