Mercurial > hg > orthanc
diff Core/Enumerations.h @ 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 | 37adac56017a |
children | 839be3022203 |
line wrap: on
line diff
--- a/Core/Enumerations.h Tue May 06 12:55:41 2014 +0200 +++ b/Core/Enumerations.h Tue May 06 16:33:40 2014 +0200 @@ -85,6 +85,13 @@ PixelFormat_RGB24, /** + * {summary}{Color image in RGBA32 format.} + * {description}{This format describes a color image. The pixels are stored in 4 + * consecutive bytes. The memory layout is RGBA. + **/ + PixelFormat_RGBA32, + + /** * {summary}{Graylevel 8bpp image.} * {description}{The image is graylevel. Each pixel is unsigned and stored in one byte.} **/ @@ -213,6 +220,12 @@ }; + enum ImageFormat + { + ImageFormat_Png = 1 + }; + + /** * WARNING: Do not change the explicit values in the enumerations * below this point. This would result in incompatible databases @@ -250,5 +263,11 @@ const char* EnumerationToString(ResourceType type); + const char* EnumerationToString(ImageFormat format); + ResourceType StringToResourceType(const char* type); + + ImageFormat StringToImageFormat(const char* format); + + unsigned int GetBytesPerPixel(PixelFormat format); }