From 1e819989b128d51d1532b61dc05312f1519e6cfd Mon Sep 17 00:00:00 2001 From: dirk Date: Tue, 22 Oct 2013 14:47:12 +0000 Subject: [PATCH] Added method to retrieve profile names to STL.h --- Magick++/lib/Magick++/STL.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Magick++/lib/Magick++/STL.h b/Magick++/lib/Magick++/STL.h index 8c00d5431..95ef0e171 100644 --- a/Magick++/lib/Magick++/STL.h +++ b/Magick++/lib/Magick++/STL.h @@ -2504,6 +2504,24 @@ namespace Magick (void) MagickCore::DestroyExceptionInfo( &exceptionInfo ); } + // Adds the names of the profiles from the image to the container. + template + void profileNames( Container *names_, const Image* image_ ) + { + const char* + name; + + names_->clear(); + + MagickCore::ResetImageProfileIterator( image_->constImage() ); + name=MagickCore::GetNextImageProfile( image_->constImage() ); + while (name != (const char *) NULL) + { + names_->push_back( std::string(name) ); + name=MagickCore::GetNextImageProfile( image_->constImage() ); + } + } + // Quantize colors in images using current quantization settings // Set measureError_ to true in order to measure quantization error template -- 2.50.1