comparison Core/ImageFormats/PngReader.cpp @ 800:ecedd89055db

generation of DICOM images from PNG files
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 06 May 2014 16:33:40 +0200
parents 777b6b694da6
children a811bdf8b8eb
comparison
equal deleted inserted replaced
799:777b6b694da6 800:ecedd89055db
169 else if (color_type == PNG_COLOR_TYPE_RGB && bit_depth == 8) 169 else if (color_type == PNG_COLOR_TYPE_RGB && bit_depth == 8)
170 { 170 {
171 format = PixelFormat_RGB24; 171 format = PixelFormat_RGB24;
172 pitch = 3 * width; 172 pitch = 3 * width;
173 } 173 }
174 else if (color_type == PNG_COLOR_TYPE_RGBA && bit_depth == 8)
175 {
176 format = PixelFormat_RGBA32;
177 pitch = 4 * width;
178 }
174 else 179 else
175 { 180 {
176 throw OrthancException(ErrorCode_NotImplemented); 181 throw OrthancException(ErrorCode_NotImplemented);
177 } 182 }
178 183