Review of image classes interfaces, part 2

This commit is contained in:
heckflosse
2018-11-18 18:09:40 +01:00
parent bfe8465563
commit 512adf5b62
8 changed files with 72 additions and 87 deletions

View File

@@ -159,7 +159,7 @@ void Imagefloat::getScanline (int row, unsigned char* buffer, int bps, bool isFl
}
}
Imagefloat* Imagefloat::copy ()
Imagefloat* Imagefloat::copy () const
{
Imagefloat* cp = new Imagefloat (width, height);
@@ -330,7 +330,7 @@ void Imagefloat::getStdImage (const ColorTemp &ctemp, int tran, Imagefloat* imag
}
Image8*
Imagefloat::to8()
Imagefloat::to8() const
{
Image8* img8 = new Image8(width, height);
#ifdef _OPENMP
@@ -349,7 +349,7 @@ Imagefloat::to8()
}
Image16*
Imagefloat::to16()
Imagefloat::to16() const
{
Image16* img16 = new Image16(width, height);
#ifdef _OPENMP