From: dirk Date: Tue, 22 Oct 2013 14:47:12 +0000 (+0000) Subject: Added method to retrieve profile names to STL.h X-Git-Tag: 7.0.1-0~3194 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1e819989b128d51d1532b61dc05312f1519e6cfd;p=imagemagick Added method to retrieve profile names to STL.h --- 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