Mercurial > hg > orthanc
diff Core/Images/ImageProcessing.cpp @ 2783:65699fcb4e99
PixelTraits<PixelFormat_RGBA32>
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 24 Jul 2018 15:00:58 +0200 |
parents | 5f2dd8b6ee2f |
children | f4c232bba1eb |
line wrap: on
line diff
--- a/Core/Images/ImageProcessing.cpp Tue Jul 24 10:39:08 2018 +0200 +++ b/Core/Images/ImageProcessing.cpp Tue Jul 24 15:00:58 2018 +0200 @@ -1219,6 +1219,19 @@ break; } + case Orthanc::PixelFormat_RGBA32: + { + PixelTraits<Orthanc::PixelFormat_RGBA32>::PixelType pixel; + pixel.red_ = red; + pixel.green_ = green; + pixel.blue_ = blue; + pixel.alpha_ = alpha; + + BresenhamPixelWriter<Orthanc::PixelFormat_RGBA32> writer(image, pixel); + writer.DrawSegment(x0, y0, x1, y1); + break; + } + case Orthanc::PixelFormat_RGB24: { PixelTraits<Orthanc::PixelFormat_RGB24>::PixelType pixel;