void depth(size_t depth_);
size_t depth(void) const;
+ // Ping the image instead of reading it
+ void ping(const bool flag_);
+ bool ping(void) const;
+
// Suppress all warning messages. Error messages are still reported.
void quiet(const bool quiet_);
bool quiet(void) const;
ThrowPPException(first_->quiet());
}
+ // Ping images into existing container (appending to container)
+ template<class Container>
+ void pingImages(Container *sequence_,const std::string &imageSpec_,
+ ReadOptions &options)
+ {
+ options.ping=true;
+ readImages(sequence_,imageSpec_,options);
+ }
+
+ template<class Container>
+ void pingImages(Container *sequence_,const std::string &imageSpec_)
+ {
+ ReadOptions options;
+ pingImages(sequence_,imageSpec_,options);
+ }
+
+ template<class Container>
+ void pingImages(Container *sequence_,const Blob &blob_,ReadOptions &options)
+ {
+ options.ping=true;
+ readImages(sequence_,blob_,options);
+ }
+
+ template<class Container>
+ void pingImages(Container *sequence_,const Blob &blob_)
+ {
+ ReadOptions options;
+ pingImages(sequence_,blob_,options);
+ }
+
// Adds the names of the profiles of the image to the container.
template <class Container>
void profileNames(Container *names_,const Image* image_)
return(_imageInfo->depth);
}
-void Magick::ReadOptions::size(const Geometry &geometry_)
+void Magick::ReadOptions::ping(const bool flag_)
{
- _imageInfo->size=(char *) RelinquishMagickMemory(_imageInfo->size);
-
- if ( geometry_.isValid() )
- Magick::CloneString(&_imageInfo->size,geometry_);
+ _imageInfo->ping=(MagickBooleanType) flag_;
}
-Magick::Geometry Magick::ReadOptions::size(void) const
+bool Magick::ReadOptions::ping(void) const
{
- if (_imageInfo->size)
- return(Geometry(_imageInfo->size));
-
- return(Geometry());
+ return(static_cast<bool>(_imageInfo->ping));
}
void Magick::ReadOptions::quiet(const bool quiet_)
return(_quiet);
}
+void Magick::ReadOptions::size(const Geometry &geometry_)
+{
+ _imageInfo->size=(char *) RelinquishMagickMemory(_imageInfo->size);
+
+ if ( geometry_.isValid() )
+ Magick::CloneString(&_imageInfo->size,geometry_);
+}
+
+Magick::Geometry Magick::ReadOptions::size(void) const
+{
+ if (_imageInfo->size)
+ return(Geometry(_imageInfo->size));
+
+ return(Geometry());
+}
+
MagickCore::ImageInfo *Magick::ReadOptions::imageInfo(void)
{
return(_imageInfo);