Non compressing png writer is ok.

This commit is contained in:
James Grogan 2022-11-25 09:43:14 +00:00
parent 33369b1775
commit e4f9393ee7
18 changed files with 196 additions and 23 deletions

View file

@ -22,6 +22,16 @@ void Image<T>::initialize()
mData = std::vector<T>(getBytesPerRow()*mHeight, 10);
}
template<typename T>
void Image<T>::setDataItem(std::size_t index, T item)
{
if(index >= mData.size())
{
return;
}
mData[index] = item;
}
template<typename T>
void Image<T>::setPixelValue(unsigned idx, unsigned jdx, const Color& color)
{