Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
supersk
Posted - Jan 06 2025 : 01:58:00 the code as following: imgenvImport->IO->NativePixelFormat = true; // Use the original pixel format imgenvImport->IO->LoadFromFileAuto(ImgFileName); imgenvtmp->Assign(imgenvImport); imgenvtmp->Proc->ConvertTo(ie16g); imgenvtmp->IO->SaveToFileTIFF("D:\\tetst.tif");
The above code is designed to load a colored PNG image and convert it into a 16-bit grayscale TIFF image. However, the resulting image is a 48-bit TIFF image. Therefore, how can we convert a color image into a 16-bit grayscale TIFF image?