Non compressing png writer is ok.
This commit is contained in:
parent
33369b1775
commit
e4f9393ee7
18 changed files with 196 additions and 23 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue