Starting resize support.
This commit is contained in:
parent
cea3d2c39f
commit
9ade0e2d4b
26 changed files with 197 additions and 44 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue