Powered by Pair ImageMagick logo
Image Magick
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages

Magick Namespace Reference


Data Structures

class  Magick::Blob
class  Magick::CoderInfo
class  Magick::Color
class  Magick::ColorHSL
class  Magick::ColorGray
class  Magick::ColorMono
class  Magick::ColorRGB
class  Magick::ColorYUV
class  Magick::Coordinate
class  Magick::DrawableBase
class  Magick::Drawable
class  Magick::VPathBase
class  Magick::VPath
class  Magick::DrawableAffine
class  Magick::DrawableArc
class  Magick::DrawableBezier
class  Magick::DrawablePopClipPath
class  Magick::DrawablePushClipPath
class  Magick::DrawableClipPath
class  Magick::DrawableCircle
class  Magick::DrawableColor
class  Magick::DrawableCompositeImage
class  Magick::DrawableEllipse
class  Magick::DrawableFillColor
class  Magick::DrawableFillRule
class  Magick::DrawableFillOpacity
class  Magick::DrawableFont
class  Magick::DrawableGravity
class  Magick::DrawableLine
class  Magick::DrawableMatte
class  Magick::DrawablePath
class  Magick::DrawablePoint
class  Magick::DrawablePointSize
class  Magick::DrawablePolygon
class  Magick::DrawablePolyline
class  Magick::DrawablePopGraphicContext
class  Magick::DrawablePushGraphicContext
class  Magick::DrawablePopPattern
class  Magick::DrawablePushPattern
class  Magick::DrawableRectangle
class  Magick::DrawableRotation
class  Magick::DrawableRoundRectangle
class  Magick::DrawableScaling
class  Magick::DrawableSkewX
class  Magick::DrawableSkewY
class  Magick::DrawableDashArray
class  Magick::DrawableDashOffset
class  Magick::DrawableStrokeLineCap
class  Magick::DrawableStrokeLineJoin
class  Magick::DrawableMiterLimit
class  Magick::DrawableStrokeAntialias
class  Magick::DrawableStrokeColor
class  Magick::DrawableStrokeOpacity
class  Magick::DrawableStrokeWidth
class  Magick::DrawableText
class  Magick::DrawableTextAntialias
class  Magick::DrawableTextDecoration
class  Magick::DrawableTextUnderColor
class  Magick::DrawableTranslation
class  Magick::DrawableViewbox
class  Magick::PathArcArgs
class  Magick::PathArcAbs
class  Magick::PathArcRel
class  Magick::PathClosePath
class  Magick::PathCurvetoArgs
class  Magick::PathCurvetoAbs
class  Magick::PathCurvetoRel
class  Magick::PathSmoothCurvetoAbs
class  Magick::PathSmoothCurvetoRel
class  Magick::PathQuadraticCurvetoArgs
class  Magick::PathQuadraticCurvetoAbs
class  Magick::PathQuadraticCurvetoRel
class  Magick::PathSmoothQuadraticCurvetoAbs
class  Magick::PathSmoothQuadraticCurvetoRel
class  Magick::PathLinetoAbs
class  Magick::PathLinetoRel
class  Magick::PathLinetoHorizontalAbs
class  Magick::PathLinetoHorizontalRel
class  Magick::PathLinetoVerticalAbs
class  Magick::PathLinetoVerticalRel
class  Magick::PathMovetoAbs
class  Magick::PathMovetoRel
class  Magick::Exception
class  Magick::Warning
class  Magick::WarningUndefined
class  Magick::WarningBlob
class  Magick::WarningCache
class  Magick::WarningCoder
class  Magick::WarningConfigure
class  Magick::WarningCorruptImage
class  Magick::WarningDelegate
class  Magick::WarningDraw
class  Magick::WarningFileOpen
class  Magick::WarningImage
class  Magick::WarningMissingDelegate
class  Magick::WarningModule
class  Magick::WarningMonitor
class  Magick::WarningOption
class  Magick::WarningRegistry
class  Magick::WarningResourceLimit
class  Magick::WarningStream
class  Magick::WarningType
class  Magick::WarningXServer
class  Magick::Error
class  Magick::ErrorUndefined
class  Magick::ErrorBlob
class  Magick::ErrorCache
class  Magick::ErrorCoder
class  Magick::ErrorConfigure
class  Magick::ErrorCorruptImage
class  Magick::ErrorDelegate
class  Magick::ErrorDraw
class  Magick::ErrorFileOpen
class  Magick::ErrorImage
class  Magick::ErrorMissingDelegate
class  Magick::ErrorModule
class  Magick::ErrorMonitor
class  Magick::ErrorOption
class  Magick::ErrorRegistry
class  Magick::ErrorResourceLimit
class  Magick::ErrorStream
class  Magick::ErrorType
class  Magick::ErrorXServer
class  Magick::Geometry
class  Magick::Image
struct  Magick::Image::_ImageChannelStatistics
struct  Magick::Image::_ImageStatistics
class  Magick::Montage
class  Magick::MontageFramed
class  Magick::Pixels
class  Magick::adaptiveThresholdImage
class  Magick::addNoiseImage
class  Magick::affineTransformImage
class  Magick::annotateImage
class  Magick::blurImage
class  Magick::borderImage
class  Magick::charcoalImage
class  Magick::chopImage
class  Magick::colorizeImage
class  Magick::colorSpaceImage
class  Magick::commentImage
class  Magick::compositeImage
class  Magick::contrastImage
class  Magick::cropImage
class  Magick::cycleColormapImage
class  Magick::despeckleImage
class  Magick::drawImage
class  Magick::edgeImage
class  Magick::embossImage
class  Magick::enhanceImage
class  Magick::equalizeImage
class  Magick::fillColorImage
class  Magick::flipImage
class  Magick::floodFillColorImage
class  Magick::floodFillTextureImage
class  Magick::flopImage
class  Magick::frameImage
class  Magick::gammaImage
class  Magick::gaussianBlurImage
class  Magick::implodeImage
class  Magick::isValidImage
class  Magick::labelImage
class  Magick::channelImage
class  Magick::magnifyImage
class  Magick::mapImage
class  Magick::matteFloodfillImage
class  Magick::medianFilterImage
class  Magick::minifyImage
class  Magick::modulateImage
class  Magick::negateImage
class  Magick::normalizeImage
class  Magick::oilPaintImage
class  Magick::opacityImage
class  Magick::opaqueImage
class  Magick::quantizeImage
class  Magick::raiseImage
class  Magick::reduceNoiseImage
class  Magick::rollImage
class  Magick::rotateImage
class  Magick::sampleImage
class  Magick::scaleImage
class  Magick::segmentImage
class  Magick::shadeImage
class  Magick::sharpenImage
class  Magick::shaveImage
class  Magick::shearImage
class  Magick::solarizeImage
class  Magick::spreadImage
class  Magick::steganoImage
class  Magick::stereoImage
class  Magick::strokeColorImage
class  Magick::swirlImage
class  Magick::textureImage
class  Magick::thresholdImage
class  Magick::transformImage
class  Magick::transparentImage
class  Magick::trimImage
class  Magick::waveImage
class  Magick::zoomImage
class  Magick::antiAliasImage
class  Magick::adjoinImage
class  Magick::animationDelayImage
class  Magick::animationIterationsImage
class  Magick::backgroundColorImage
class  Magick::backgroundTextureImage
class  Magick::borderColorImage
class  Magick::boxColorImage
class  Magick::chromaBluePrimaryImage
class  Magick::chromaGreenPrimaryImage
class  Magick::chromaRedPrimaryImage
class  Magick::chromaWhitePointImage
class  Magick::colorFuzzImage
class  Magick::colorMapImage
class  Magick::composeImage
class  Magick::compressTypeImage
class  Magick::densityImage
class  Magick::depthImage
class  Magick::endianImage
class  Magick::fileNameImage
class  Magick::filterTypeImage
class  Magick::fontImage
class  Magick::fontPointsizeImage
class  Magick::gifDisposeMethodImage
class  Magick::interlaceTypeImage
class  Magick::lineWidthImage
class  Magick::magickImage
class  Magick::matteImage
class  Magick::matteColorImage
class  Magick::monochromeImage
class  Magick::penColorImage
class  Magick::penTextureImage
class  Magick::pixelColorImage
class  Magick::pageImage
class  Magick::qualityImage
class  Magick::quantizeColorsImage
class  Magick::quantizeColorSpaceImage
class  Magick::quantizeDitherImage
class  Magick::quantizeTreeDepthImage
class  Magick::renderingIntentImage
class  Magick::resolutionUnitsImage
class  Magick::sceneImage
class  Magick::sizeImage
class  Magick::subImageImage
class  Magick::subRangeImage
class  Magick::tileNameImage
class  Magick::typeImage
class  Magick::verboseImage
class  Magick::viewImage
class  Magick::x11DisplayImage
class  Magick::TypeMetric
class  Magick::MagickCleanUp
class  Magick::BlobRef
class  Magick::ImageRef
class  Magick::Options
class  Magick::MutexLock
class  Magick::Lock

Typedefs

typedef std::list< Magick::CoordinateCoordinateList
typedef std::list< Magick::DrawableDrawableList
typedef std::list< Magick::VPathVPathList
typedef std::list< Magick::PathArcArgsPathArcArgsList
typedef std::list< Magick::PathCurvetoArgsPathCurveToArgsList
typedef std::list< Magick::PathQuadraticCurvetoArgsPathQuadraticCurvetoArgsList

Functions

int MagickDLLDecl operator== (const Magick::Color &left_, const Magick::Color &right_)
int MagickDLLDecl operator!= (const Magick::Color &left_, const Magick::Color &right_)
int MagickDLLDecl operator> (const Magick::Color &left_, const Magick::Color &right_)
int MagickDLLDecl operator< (const Magick::Color &left_, const Magick::Color &right_)
int MagickDLLDecl operator>= (const Magick::Color &left_, const Magick::Color &right_)
int MagickDLLDecl operator<= (const Magick::Color &left_, const Magick::Color &right_)
MagickDLLDeclExtern int operator== (const Coordinate &left_, const Coordinate &right_)
MagickDLLDeclExtern int operator!= (const Coordinate &left_, const Coordinate &right_)
MagickDLLDeclExtern int operator> (const Coordinate &left_, const Coordinate &right_)
MagickDLLDeclExtern int operator< (const Coordinate &left_, const Coordinate &right_)
MagickDLLDeclExtern int operator>= (const Coordinate &left_, const Coordinate &right_)
MagickDLLDeclExtern int operator<= (const Coordinate &left_, const Coordinate &right_)
MagickDLLDeclExtern int operator== (const Drawable &left_, const Drawable &right_)
MagickDLLDeclExtern int operator!= (const Drawable &left_, const Drawable &right_)
MagickDLLDeclExtern int operator> (const Drawable &left_, const Drawable &right_)
MagickDLLDeclExtern int operator< (const Drawable &left_, const Drawable &right_)
MagickDLLDeclExtern int operator>= (const Drawable &left_, const Drawable &right_)
MagickDLLDeclExtern int operator<= (const Drawable &left_, const Drawable &right_)
MagickDLLDeclExtern int operator== (const VPath &left_, const VPath &right_)
MagickDLLDeclExtern int operator!= (const VPath &left_, const VPath &right_)
MagickDLLDeclExtern int operator> (const VPath &left_, const VPath &right_)
MagickDLLDeclExtern int operator< (const VPath &left_, const VPath &right_)
MagickDLLDeclExtern int operator>= (const VPath &left_, const VPath &right_)
MagickDLLDeclExtern int operator<= (const VPath &left_, const VPath &right_)
MagickDLLDeclExtern int operator== (const PathArcArgs &left_, const PathArcArgs &right_)
MagickDLLDeclExtern int operator!= (const PathArcArgs &left_, const PathArcArgs &right_)
MagickDLLDeclExtern int operator> (const PathArcArgs &left_, const PathArcArgs &right_)
MagickDLLDeclExtern int operator< (const PathArcArgs &left_, const PathArcArgs &right_)
MagickDLLDeclExtern int operator>= (const PathArcArgs &left_, const PathArcArgs &right_)
MagickDLLDeclExtern int operator<= (const PathArcArgs &left_, const PathArcArgs &right_)
MagickDLLDeclExtern int operator== (const PathCurvetoArgs &left_, const PathCurvetoArgs &right_)
MagickDLLDeclExtern int operator!= (const PathCurvetoArgs &left_, const PathCurvetoArgs &right_)
MagickDLLDeclExtern int operator> (const PathCurvetoArgs &left_, const PathCurvetoArgs &right_)
MagickDLLDeclExtern int operator< (const PathCurvetoArgs &left_, const PathCurvetoArgs &right_)
MagickDLLDeclExtern int operator>= (const PathCurvetoArgs &left_, const PathCurvetoArgs &right_)
MagickDLLDeclExtern int operator<= (const PathCurvetoArgs &left_, const PathCurvetoArgs &right_)
MagickDLLDeclExtern int operator== (const PathQuadraticCurvetoArgs &left_, const PathQuadraticCurvetoArgs &right_)
MagickDLLDeclExtern int operator!= (const PathQuadraticCurvetoArgs &left_, const PathQuadraticCurvetoArgs &right_)
MagickDLLDeclExtern int operator> (const PathQuadraticCurvetoArgs &left_, const PathQuadraticCurvetoArgs &right_)
MagickDLLDeclExtern int operator< (const PathQuadraticCurvetoArgs &left_, const PathQuadraticCurvetoArgs &right_)
MagickDLLDeclExtern int operator>= (const PathQuadraticCurvetoArgs &left_, const PathQuadraticCurvetoArgs &right_)
MagickDLLDeclExtern int operator<= (const PathQuadraticCurvetoArgs &left_, const PathQuadraticCurvetoArgs &right_)
MagickDLLDeclExtern void throwExceptionExplicit (const MagickLib::ExceptionType severity_, const char *reason_, const char *description_=0)
MagickDLLDeclExtern void throwException (MagickLib::ExceptionInfo &exception_)
int MagickDLLDecl operator== (const Magick::Geometry &left_, const Magick::Geometry &right_)
int MagickDLLDecl operator!= (const Magick::Geometry &left_, const Magick::Geometry &right_)
int MagickDLLDecl operator> (const Magick::Geometry &left_, const Magick::Geometry &right_)
int MagickDLLDecl operator< (const Magick::Geometry &left_, const Magick::Geometry &right_)
int MagickDLLDecl operator>= (const Magick::Geometry &left_, const Magick::Geometry &right_)
int MagickDLLDecl operator<= (const Magick::Geometry &left_, const Magick::Geometry &right_)
int MagickDLLDecl operator== (const Magick::Image &left_, const Magick::Image &right_)
int MagickDLLDecl operator!= (const Magick::Image &left_, const Magick::Image &right_)
int MagickDLLDecl operator> (const Magick::Image &left_, const Magick::Image &right_)
int MagickDLLDecl operator< (const Magick::Image &left_, const Magick::Image &right_)
int MagickDLLDecl operator>= (const Magick::Image &left_, const Magick::Image &right_)
int MagickDLLDecl operator<= (const Magick::Image &left_, const Magick::Image &right_)
void MagickDLLDecl InitializeMagick (const char *path_)
template<class InputIterator> void linkImages (InputIterator first_, InputIterator last_)
template<class InputIterator> void unlinkImages (InputIterator first_, InputIterator last_)
template<class Container> void insertImages (Container *sequence_, MagickLib::Image *images_)
template<class InputIterator> void animateImages (InputIterator first_, InputIterator last_)
template<class InputIterator> void appendImages (Image *appendedImage_, InputIterator first_, InputIterator last_, bool stack_=false)
template<class InputIterator> void averageImages (Image *averagedImage_, InputIterator first_, InputIterator last_)
template<class InputIterator, class Container> void coalesceImages (Container *coalescedImages_, InputIterator first_, InputIterator last_)
template<class Container> void coderInfoList (Container *container_, CoderInfo::MatchType isReadable_=CoderInfo::AnyMatch, CoderInfo::MatchType isWritable_=CoderInfo::AnyMatch, CoderInfo::MatchType isMultiFrame_=CoderInfo::AnyMatch)
template<class Container> void colorHistogram (Container *histogram_, const Image image)
template<class InputIterator, class Container> void deconstructImages (Container *deconstructedImages_, InputIterator first_, InputIterator last_)
template<class InputIterator> void displayImages (InputIterator first_, InputIterator last_)
template<class InputIterator> void flattenImages (Image *flattendImage_, InputIterator first_, InputIterator last_)
template<class InputIterator> void mapImages (InputIterator first_, InputIterator last_, const Image &mapImage_, bool dither_=false, bool measureError_=false)
template<class Container, class InputIterator> void montageImages (Container *montageImages_, InputIterator first_, InputIterator last_, const Montage &montageOpts_)
template<class InputIterator, class Container> void morphImages (Container *morphedImages_, InputIterator first_, InputIterator last_, unsigned int frames_)
template<class InputIterator> void mosaicImages (Image *mosaicImage_, InputIterator first_, InputIterator last_)
template<class InputIterator> void quantizeImages (InputIterator first_, InputIterator last_, bool measureError_=false)
template<class Container> void readImages (Container *sequence_, const std::string &imageSpec_)
template<class Container> void readImages (Container *sequence_, const Blob &blob_)
template<class InputIterator> void writeImages (InputIterator first_, InputIterator last_, const std::string &imageSpec_, bool adjoin_=true)
template<class InputIterator> void writeImages (InputIterator first_, InputIterator last_, Blob *blob_, bool adjoin_=true)
void MagickPlusPlusDestroyMagick (void)
void MagickDLLDecl CloneString (char **destination_, const std::string &source_)

Variables

MagickDLLDecl Color
MagickDLLDecl Image
MagickDLLDecl Geometry
MagickDLLDecl const char * borderGeometryDefault = "6x6+0+0"
MagickDLLDecl const char * frameGeometryDefault = "25x25+6+6"
MagickDLLDecl const char * raiseGeometryDefault = "6x6+0+0"
MagickCleanUp magickCleanUpGuard


Typedef Documentation

typedef std::list< Magick::Coordinate > Magick::CoordinateList
 

Definition at line 78 of file Drawable.h.

Referenced by Magick::DrawablePolyline::DrawablePolyline(), Magick::PathSmoothCurvetoAbs::PathSmoothCurvetoAbs(), Magick::PathSmoothCurvetoRel::PathSmoothCurvetoRel(), Magick::PathSmoothQuadraticCurvetoAbs::PathSmoothQuadraticCurvetoAbs(), and Magick::PathSmoothQuadraticCurvetoRel::PathSmoothQuadraticCurvetoRel().

typedef std::list< Magick::Drawable > Magick::DrawableList
 

Definition at line 172 of file Drawable.h.

typedef std::list< Magick::PathArcArgs > Magick::PathArcArgsList
 

Definition at line 2215 of file Drawable.h.

typedef std::list< Magick::PathCurvetoArgs > Magick::PathCurveToArgsList
 

Definition at line 2389 of file Drawable.h.

typedef std::list< Magick::PathQuadraticCurvetoArgs > Magick::PathQuadraticCurvetoArgsList
 

Definition at line 2570 of file Drawable.h.

Referenced by Magick::PathQuadraticCurvetoAbs::PathQuadraticCurvetoAbs(), and Magick::PathQuadraticCurvetoRel::PathQuadraticCurvetoRel().

typedef std::list< Magick::VPath > Magick::VPathList
 

Definition at line 252 of file Drawable.h.


Function Documentation

template<class InputIterator>
void Magick::animateImages InputIterator  first_,
InputIterator  last_
 

Definition at line 1750 of file STL.h.

References AnimateImages(), GetExceptionInfo(), GetImageException(), linkImages(), throwException(), and unlinkImages().

01751 { 01752 MagickLib::ExceptionInfo exceptionInfo; 01753 MagickLib::GetExceptionInfo( &exceptionInfo ); 01754 linkImages( first_, last_ ); 01755 MagickLib::AnimateImages( first_->imageInfo(), first_->image() ); 01756 MagickLib::GetImageException( first_->image(), &exceptionInfo ); 01757 unlinkImages( first_, last_ ); 01758 throwException( exceptionInfo ); 01759 }

Here is the call graph for this function:

template<class InputIterator>
void Magick::appendImages Image appendedImage_,
InputIterator  first_,
InputIterator  last_,
bool  stack_ = false
 

Definition at line 1764 of file STL.h.

References AppendImages(), GetExceptionInfo(), linkImages(), MagickBooleanType, Magick::Image::replaceImage(), throwException(), and unlinkImages().

Referenced by main().

01767 { 01768 MagickLib::ExceptionInfo exceptionInfo; 01769 MagickLib::GetExceptionInfo( &exceptionInfo ); 01770 linkImages( first_, last_ ); 01771 MagickLib::Image* image = MagickLib::AppendImages( first_->image(), 01772 (MagickBooleanType) stack_, 01773 &exceptionInfo ); 01774 unlinkImages( first_, last_ ); 01775 appendedImage_->replaceImage( image ); 01776 throwException( exceptionInfo ); 01777 }

Here is the call graph for this function:

template<class InputIterator>
void Magick::averageImages Image averagedImage_,
InputIterator  first_,
InputIterator  last_
 

Definition at line 1782 of file STL.h.

References AverageImages(), GetExceptionInfo(), linkImages(), Magick::Image::replaceImage(), throwException(), and unlinkImages().

Referenced by main().

01784 { 01785 MagickLib::ExceptionInfo exceptionInfo; 01786 MagickLib::GetExceptionInfo( &exceptionInfo ); 01787 linkImages( first_, last_ ); 01788 MagickLib::Image* image = MagickLib::AverageImages( first_->image(), 01789 &exceptionInfo ); 01790 unlinkImages( first_, last_ ); 01791 averagedImage_->replaceImage( image ); 01792 throwException( exceptionInfo ); 01793 }

Here is the call graph for this function:

void Magick::CloneString char **  destination_,
const std::string &  source_
 

Definition at line 18 of file Functions.cpp.

References CloneString().

Referenced by Magick::Options::backgroundTexture(), Magick::Options::density(), Magick::Options::font(), Magick::Options::page(), Magick::Options::size(), Magick::Options::textEncoding(), Magick::Options::tileName(), Magick::MontageFramed::updateMontageInfo(), Magick::Montage::updateMontageInfo(), Magick::Options::view(), and Magick::Options::x11Display().

00019 { 00020 MagickLib::CloneString( destination_, source_.c_str() ); 00021 }

Here is the call graph for this function:

template<class InputIterator, class Container>
void Magick::coalesceImages Container *  coalescedImages_,
InputIterator  first_,
InputIterator  last_
 

Definition at line 1801 of file STL.h.

References CoalesceImages(), GetExceptionInfo(), insertImages(), linkImages(), throwException(), and unlinkImages().

Referenced by main().

01803 { 01804 MagickLib::ExceptionInfo exceptionInfo; 01805 MagickLib::GetExceptionInfo( &exceptionInfo ); 01806 01807 // Build image list 01808 linkImages( first_, last_ ); 01809 MagickLib::Image* images = MagickLib::CoalesceImages( first_->image(), 01810 &exceptionInfo); 01811 // Unlink image list 01812 unlinkImages( first_, last_ ); 01813 01814 // Ensure container is empty 01815 coalescedImages_->clear(); 01816 01817 // Move images to container 01818 insertImages( coalescedImages_, images ); 01819 01820 // Report any error 01821 throwException( exceptionInfo ); 01822 }

Here is the call graph for this function:

template<class Container>
void Magick::coderInfoList Container *  container_,
CoderInfo::MatchType  isReadable_ = CoderInfo::AnyMatch,
CoderInfo::MatchType  isWritable_ = CoderInfo::AnyMatch,
CoderInfo::MatchType  isMultiFrame_ = CoderInfo::AnyMatch
 

Definition at line 1834 of file STL.h.

References DestroyExceptionInfo(), GetExceptionInfo(), GetMagickInfo(), GetMagickList(), Magick::CoderInfo::isMultiFrame(), Magick::CoderInfo::isReadable(), Magick::CoderInfo::isWritable(), RelinquishMagickMemory(), throwException(), and throwExceptionExplicit().

Referenced by test().

01838 { 01839 // Obtain first entry in MagickInfo list 01840 unsigned long number_formats; 01841 MagickLib::ExceptionInfo exceptionInfo; 01842 MagickLib::GetExceptionInfo( &exceptionInfo ); 01843 char **coder_list = 01844 MagickLib::GetMagickList( "*", &number_formats ); 01845 if( !coder_list ) 01846 { 01847 throwException( exceptionInfo ); 01848 throwExceptionExplicit(MagickLib::MissingDelegateError, 01849 "Coder array not returned!", 0 ); 01850 } 01851 01852 // Clear out container 01853 container_->clear(); 01854 01855 for ( int i=0; i < number_formats; i++) 01856 { 01857 const MagickLib::MagickInfo *magick_info = 01858 MagickLib::GetMagickInfo( coder_list[i], &exceptionInfo ); 01859 coder_list[i]=(char *) 01860 MagickLib::RelinquishMagickMemory( coder_list[i] ); 01861 01862 // Skip stealth coders 01863 if ( magick_info->stealth ) 01864 continue; 01865 01866 try { 01867 CoderInfo coderInfo( magick_info->name ); 01868 01869 // Test isReadable_ 01870 if ( isReadable_ != CoderInfo::AnyMatch && 01871 (( coderInfo.isReadable() && isReadable_ != CoderInfo::TrueMatch ) || 01872 ( !coderInfo.isReadable() && isReadable_ != CoderInfo::FalseMatch )) ) 01873 continue; 01874 01875 // Test isWritable_ 01876 if ( isWritable_ != CoderInfo::AnyMatch && 01877 (( coderInfo.isWritable() && isWritable_ != CoderInfo::TrueMatch ) || 01878 ( !coderInfo.isWritable() && isWritable_ != CoderInfo::FalseMatch )) ) 01879 continue; 01880 01881 // Test isMultiFrame_ 01882 if ( isMultiFrame_ != CoderInfo::AnyMatch && 01883 (( coderInfo.isMultiFrame() && isMultiFrame_ != CoderInfo::TrueMatch ) || 01884 ( !coderInfo.isMultiFrame() && isMultiFrame_ != CoderInfo::FalseMatch )) ) 01885 continue; 01886 01887 // Append matches to container 01888 container_->push_back( coderInfo ); 01889 } 01890 // Intentionally ignore missing module errors 01891 catch ( Magick::ErrorModule ) 01892 { 01893 continue; 01894 } 01895 } 01896 coder_list=(char **) MagickLib::RelinquishMagickMemory( coder_list ); 01897 MagickLib::DestroyExceptionInfo( &exceptionInfo ); 01898 }

Here is the call graph for this function:

template<class Container>
void Magick::colorHistogram Container *  histogram_,
const Image  image
 

Definition at line 1941 of file STL.h.

References Color, Magick::Image::constImage(), GetExceptionInfo(), GetImageHistogram(), RelinquishMagickMemory(), and throwException().

Referenced by main().

01942 { 01943 MagickLib::ExceptionInfo exceptionInfo; 01944 MagickLib::GetExceptionInfo( &exceptionInfo ); 01945 01946 // Obtain histogram array 01947 unsigned long colors; 01948 MagickLib::ColorPacket *histogram_array = 01949 MagickLib::GetImageHistogram( image.constImage(), &colors, &exceptionInfo ); 01950 throwException( exceptionInfo ); 01951 01952 // Clear out container 01953 histogram_->clear(); 01954 01955 // Transfer histogram array to container 01956 for ( unsigned long i=0; i < colors; i++) 01957 { 01958 histogram_->insert(histogram_->end(),std::pair<const Color,unsigned long> 01959 ( Color(histogram_array[i].pixel.red, 01960 histogram_array[i].pixel.green, 01961 histogram_array[i].pixel.blue), 01962 histogram_array[i].count) ); 01963 } 01964 01965 // Deallocate histogram array 01966 histogram_array=(MagickLib::ColorPacket *) 01967 MagickLib::RelinquishMagickMemory(histogram_array); 01968 }

Here is the call graph for this function:

template<class InputIterator, class Container>
void Magick::deconstructImages Container *  deconstructedImages_,
InputIterator  first_,
InputIterator  last_
 

Definition at line 1973 of file STL.h.

References DeconstructImages(), GetExceptionInfo(), insertImages(), linkImages(), throwException(), and unlinkImages().

01975 { 01976 MagickLib::ExceptionInfo exceptionInfo; 01977 MagickLib::GetExceptionInfo( &exceptionInfo ); 01978 01979 // Build image list 01980 linkImages( first_, last_ ); 01981 MagickLib::Image* images = MagickLib::DeconstructImages( first_->image(), 01982 &exceptionInfo); 01983 // Unlink image list 01984 unlinkImages( first_, last_ ); 01985 01986 // Ensure container is empty 01987 deconstructedImages_->clear(); 01988 01989 // Move images to container 01990 insertImages( deconstructedImages_, images ); 01991 01992 // Report any error 01993 throwException( exceptionInfo ); 01994 }

Here is the call graph for this function:

template<class InputIterator>
void Magick::displayImages InputIterator  first_,
InputIterator  last_
 

Definition at line 2000 of file STL.h.

References DisplayImages(), GetExceptionInfo(), GetImageException(), linkImages(), throwException(), and unlinkImages().

02001 { 02002 MagickLib::ExceptionInfo exceptionInfo; 02003 MagickLib::GetExceptionInfo( &exceptionInfo ); 02004 linkImages( first_, last_ ); 02005 MagickLib::DisplayImages( first_->imageInfo(), first_->image() ); 02006 MagickLib::GetImageException( first_->image(), &exceptionInfo ); 02007 unlinkImages( first_, last_ ); 02008 throwException( exceptionInfo ); 02009 }

Here is the call graph for this function:

template<class InputIterator>
void Magick::flattenImages Image flattendImage_,
InputIterator  first_,
InputIterator  last_
 

Definition at line 2014 of file STL.h.

References FlattenImages(), GetExceptionInfo(), linkImages(), Magick::Image::replaceImage(), throwException(), and unlinkImages().

02016 { 02017 MagickLib::ExceptionInfo exceptionInfo; 02018 MagickLib::GetExceptionInfo( &exceptionInfo ); 02019 linkImages( first_, last_ ); 02020 MagickLib::Image* image = MagickLib::FlattenImages( first_->image(), 02021 &exceptionInfo ); 02022 unlinkImages( first_, last_ ); 02023 flattendImage_->replaceImage( image ); 02024 throwException( exceptionInfo ); 02025 }

Here is the call graph for this function:

void MagickDLLDecl Magick::InitializeMagick const char *  path_  ) 
 

Definition at line 3726 of file Image.cpp.

References InitializeMagick(), magick_initialized, MagickDLLDecl, and MagickPlusPlusDestroyMagick().

03727 { 03728 MagickLib::InitializeMagick(path_); 03729 if (!magick_initialized) 03730 { 03731 magick_initialized=true; 03732 atexit(MagickPlusPlusDestroyMagick); 03733 } 03734 }

Here is the call graph for this function:

template<class Container>
void Magick::insertImages Container *  sequence_,
MagickLib::Image images_
 

Definition at line 1721 of file STL.h.

Referenced by coalesceImages(), deconstructImages(), montageImages(), morphImages(), and readImages().

01722 { 01723 MagickLib::Image *image = images_; 01724 if ( image ) 01725 { 01726 do 01727 { 01728 MagickLib::Image* next_image = image->next; 01729 image->next = 0; 01730 01731 if (next_image != 0) 01732 next_image->previous=0; 01733 01734 sequence_->push_back( Magick::Image( image ) ); 01735 01736 image=next_image; 01737 } while( image ); 01738 01739 return; 01740 } 01741 }

template<class InputIterator>
void Magick::linkImages InputIterator  first_,
InputIterator  last_
 

Definition at line 1676 of file STL.h.

Referenced by animateImages(), appendImages(), averageImages(), coalesceImages(), deconstructImages(), displayImages(), flattenImages(), mapImages(), montageImages(), morphImages(), mosaicImages(), quantizeImages(), and writeImages().

01677 { 01678 01679 MagickLib::Image* previous = 0; 01680 int scene = 0; 01681 for ( InputIterator iter = first_; iter != last_; ++iter ) 01682 { 01683 // Unless we reduce the reference count to one, the same image 01684 // structure may occur more than once in the container, causing 01685 // the linked list to fail. 01686 iter->modifyImage(); 01687 01688 MagickLib::Image* current = iter->image(); 01689 01690 current->previous = previous; 01691 current->next = 0; 01692 01693 if ( previous != 0) 01694 previous->next = current; 01695 01696 current->scene=scene; 01697 ++scene; 01698 01699 previous = current; 01700 } 01701 }

void Magick::MagickPlusPlusDestroyMagick void   ) 
 

Definition at line 3716 of file Image.cpp.

References DestroyMagick(), and magick_initialized.

Referenced by InitializeMagick(), and Magick::MagickCleanUp::~MagickCleanUp().

03717 { 03718 if (magick_initialized) 03719 { 03720 magick_initialized=false; 03721 MagickLib::DestroyMagick(); 03722 } 03723 }

Here is the call graph for this function:

template<class InputIterator>
void Magick::mapImages InputIterator  first_,
InputIterator  last_,
const Image mapImage_,
bool  dither_ = false,
bool  measureError_ = false
 

Definition at line 2032 of file STL.h.

References Magick::Image::constImage(), GetExceptionInfo(), GetImageException(), GetImageQuantizeError(), linkImages(), MapImages(), SyncImage(), throwException(), and unlinkImages().

02036 { 02037 02038 MagickLib::ExceptionInfo exceptionInfo; 02039 MagickLib::GetExceptionInfo( &exceptionInfo ); 02040 linkImages( first_, last_ ); 02041 MagickLib::MapImages( first_->image(), 02042 mapImage_.constImage(), 02043 dither_ ); 02044 MagickLib::GetImageException( first_->image(), &exceptionInfo ); 02045 if ( exceptionInfo.severity != MagickLib::UndefinedException ) 02046 { 02047 unlinkImages( first_, last_ ); 02048 throwException( exceptionInfo ); 02049 } 02050 02051 MagickLib::Image* image = first_->image(); 02052 while( image ) 02053 { 02054 // Calculate quantization error 02055 if ( measureError_ ) 02056 { 02057 MagickLib::GetImageQuantizeError( image ); 02058 if ( image->exception.severity > MagickLib::UndefinedException ) 02059 { 02060 unlinkImages( first_, last_ ); 02061 throwException( exceptionInfo ); 02062 } 02063 } 02064 02065 // Udate DirectClass representation of pixels 02066 MagickLib::SyncImage( image ); 02067 if ( image->exception.severity > MagickLib::UndefinedException ) 02068 { 02069 unlinkImages( first_, last_ ); 02070 throwException( exceptionInfo ); 02071 } 02072 02073 // Next image 02074 image=image->next; 02075 } 02076 02077 unlinkImages( first_, last_ ); 02078 }

Here is the call graph for this function:

template<class Container, class InputIterator>
void Magick::montageImages Container *  montageImages_,
InputIterator  first_,
InputIterator  last_,
const Montage &  montageOpts_
 

Definition at line 2082 of file STL.h.

References AcquireMagickMemory(), DestroyMontageInfo(), GetExceptionInfo(), GetImageException(), insertImages(), Magick::Montage::label(), linkImages(), MontageImages(), throwException(), Magick::Montage::transparentColor(), unlinkImages(), and Magick::Montage::updateMontageInfo().

Referenced by main().

02085 { 02086 02087 MagickLib::MontageInfo* montageInfo = 02088 static_cast<MagickLib::MontageInfo*>(MagickLib::AcquireMagickMemory(sizeof(MagickLib::MontageInfo))); 02089 02090 // Update montage options with those set in montageOpts_ 02091 montageOpts_.updateMontageInfo( *montageInfo ); 02092 02093 // Update options which must transfer to image options 02094 if ( montageOpts_.label().length() != 0 ) 02095 first_->label( montageOpts_.label() ); 02096 02097 // Create linked image list 02098 linkImages( first_, last_ ); 02099 02100 // Reset output container to pristine state 02101 montageImages_->clear(); 02102 02103 // Do montage 02104 MagickLib::ExceptionInfo exceptionInfo; 02105 MagickLib::GetExceptionInfo( &exceptionInfo ); 02106 MagickLib::Image *images = MagickLib::MontageImages( first_->image(), 02107 montageInfo, 02108 &exceptionInfo ); 02109 if ( images != 0 ) 02110 { 02111 insertImages( montageImages_, images ); 02112 } 02113 02114 // Clean up any allocated data in montageInfo 02115 MagickLib::DestroyMontageInfo( montageInfo ); 02116 02117 // Unlink linked image list 02118 unlinkImages( first_, last_ ); 02119 02120 // Report any montage error 02121 throwException( exceptionInfo ); 02122 02123 // Apply transparency to montage images 02124 if ( montageImages_->size() > 0 && montageOpts_.transparentColor().isValid() ) 02125 { 02126 for_each( first_, last_, transparentImage( montageOpts_.transparentColor() ) ); 02127 } 02128 02129 // Report any transparentImage() error 02130 MagickLib::GetImageException( first_->image(), &exceptionInfo ); 02131 throwException( exceptionInfo ); 02132 }

Here is the call graph for this function:

template<class InputIterator, class Container>
void Magick::morphImages Container *  morphedImages_,
InputIterator  first_,
InputIterator  last_,
unsigned int  frames_
 

Definition at line 2136 of file STL.h.

References GetExceptionInfo(), insertImages(), linkImages(), MorphImages(), throwException(), and unlinkImages().

Referenced by main().

02139 { 02140 MagickLib::ExceptionInfo exceptionInfo; 02141 MagickLib::GetExceptionInfo( &exceptionInfo ); 02142 02143 // Build image list 02144 linkImages( first_, last_ ); 02145 MagickLib::Image* images = MagickLib::MorphImages( first_->image(), frames_, 02146 &exceptionInfo); 02147 // Unlink image list 02148 unlinkImages( first_, last_ ); 02149 02150 // Ensure container is empty 02151 morphedImages_->clear(); 02152 02153 // Move images to container 02154 insertImages( morphedImages_, images ); 02155 02156 // Report any error 02157 throwException( exceptionInfo ); 02158 }

Here is the call graph for this function:

template<class InputIterator>
void Magick::mosaicImages Image mosaicImage_,
InputIterator  first_,
InputIterator  last_
 

Definition at line 2162 of file STL.h.

References GetExceptionInfo(), linkImages(), MosaicImages(), Magick::Image::replaceImage(), throwException(), and unlinkImages().

02164 { 02165 MagickLib::ExceptionInfo exceptionInfo; 02166 MagickLib::GetExceptionInfo( &exceptionInfo ); 02167 linkImages( first_, last_ ); 02168 MagickLib::Image* image = MagickLib::MosaicImages( first_->image(), 02169 &exceptionInfo ); 02170 unlinkImages( first_, last_ ); 02171 mosaicImage_->replaceImage( image ); 02172 throwException( exceptionInfo ); 02173 }

Here is the call graph for this function:

int MagickDLLDecl Magick::operator!= const Magick::Image left_,
const Magick::Image right_
 

Definition at line 49 of file Image.cpp.

References MagickDLLDecl.

00051 { 00052 return ( ! (left_ == right_) ); 00053 }

int MagickDLLDecl Magick::operator!= const Magick::Geometry left_,
const Magick::Geometry right_
 

Definition at line 38 of file Geometry.cpp.

00040 { 00041 return ( ! (left_ == right_) ); 00042 }

MagickDLLDeclExtern int Magick::operator!= const PathQuadraticCurvetoArgs &  left_,
const PathQuadraticCurvetoArgs &  right_
 

Definition at line 1767 of file Drawable.cpp.

01769 { 01770 return ( 0 ); 01771 }

MagickDLLDeclExtern int Magick::operator!= const PathCurvetoArgs &  left_,
const PathCurvetoArgs &  right_
 

Definition at line 1560 of file Drawable.cpp.

References MagickDLLDecl.

01562 { 01563 return ( 0 ); 01564 }

MagickDLLDeclExtern int Magick::operator!= const PathArcArgs &  left_,
const PathArcArgs &  right_
 

Definition at line 1409 of file Drawable.cpp.

References MagickDLLDecl.

01411 { 01412 return ( 0 ); 01413 }

MagickDLLDeclExtern int Magick::operator!= const VPath &  left_,
const VPath &  right_
 

Definition at line 187 of file Drawable.cpp.

References MagickDLLDecl.

00189 { 00190 return ( 0 ); 00191 }

MagickDLLDeclExtern int Magick::operator!= const Drawable &  left_,
const Drawable &  right_
 

Definition at line 107 of file Drawable.cpp.

References MagickDLLDecl.

00109 { 00110 return ( 0 ); 00111 }

MagickDLLDeclExtern int Magick::operator!= const Coordinate left_,
const Coordinate right_
 

Definition at line 25 of file Drawable.cpp.

References MagickDLLDecl.

00027 { 00028 return ( ! (left_ == right_) ); 00029 }

int MagickDLLDecl Magick::operator!= const Magick::Color left_,
const Magick::Color right_
 

Definition at line 30 of file Color.cpp.

00032 { 00033 return ( ! (left_ == right_) ); 00034 }

int MagickDLLDecl Magick::operator< const Magick::Image left_,
const Magick::Image right_
 

Definition at line 59 of file Image.cpp.

References Magick::Image::columns(), MagickDLLDecl, and Magick::Image::rows().

00061 { 00062 // If image pixels are less, then image is smaller 00063 return ( ( left_.rows() * left_.columns() ) < 00064 ( right_.rows() * right_.columns() ) 00065 ); 00066 }

Here is the call graph for this function:

int MagickDLLDecl Magick::operator< const Magick::Geometry left_,
const Magick::Geometry right_
 

Definition at line 48 of file Geometry.cpp.

References Magick::Geometry::height(), and Magick::Geometry::width().

00050 { 00051 return ( 00052 ( left_.width() * left_.height() ) 00053 < 00054 ( right_.width() * right_.height() ) 00055 ); 00056 }

Here is the call graph for this function:

MagickDLLDeclExtern int Magick::operator< const PathQuadraticCurvetoArgs &  left_,
const PathQuadraticCurvetoArgs &  right_
 

Definition at line 1779 of file Drawable.cpp.

01781 { 01782 return ( 0 ); 01783 }

MagickDLLDeclExtern int Magick::operator< const PathCurvetoArgs &  left_,
const PathCurvetoArgs &  right_
 

Definition at line 1570 of file Drawable.cpp.

References MagickDLLDecl.

01572 { 01573 return ( false ); 01574 }

MagickDLLDeclExtern int Magick::operator< const PathArcArgs &  left_,
const PathArcArgs &  right_
 

Definition at line 1419 of file Drawable.cpp.

References MagickDLLDecl.

01421 { 01422 return ( false ); 01423 }

MagickDLLDeclExtern int Magick::operator< const VPath &  left_,
const VPath &  right_
 

Definition at line 197 of file Drawable.cpp.

References MagickDLLDecl.

00199 { 00200 return ( 0 ); 00201 }

MagickDLLDeclExtern int Magick::operator< const Drawable &  left_,
const Drawable &  right_
 

Definition at line 117 of file Drawable.cpp.

References MagickDLLDecl.

00119 { 00120 return ( 0 ); 00121 }

MagickDLLDeclExtern int Magick::operator< const Coordinate left_,
const Coordinate right_
 

Definition at line 35 of file Drawable.cpp.

References MagickDLLDecl, Magick::Coordinate::x(), and Magick::Coordinate::y().

00037 { 00038 // Based on distance from origin 00039 return ( (sqrt(left_.x()*left_.x() + left_.y()*left_.y())) < 00040 (sqrt(right_.x()*right_.x() + right_.y()*right_.y())) ); 00041 }

Here is the call graph for this function:

int MagickDLLDecl Magick::operator< const Magick::Color left_,
const Magick::Color right_
 

Definition at line 43 of file Color.cpp.

References Magick::Color::blueQuantum(), Magick::Color::greenQuantum(), Magick::Color::intensity(), and Magick::Color::redQuantum().

00045 { 00046 double left_intensity=left_.intensity(); 00047 double right_intensity=right_.intensity(); 00048 return ( 00049 (left_intensity < right_intensity) 00050 || ( 00051 (left_intensity == right_intensity) 00052 && ( 00053 (left_.greenQuantum() < right_.greenQuantum()) || 00054 (left_.redQuantum() < right_.redQuantum()) || 00055 (left_.blueQuantum() < right_.blueQuantum()) 00056 ) 00057 ) 00058 ); 00059 }

Here is the call graph for this function:

int MagickDLLDecl Magick::operator<= const Magick::Image left_,
const Magick::Image right_
 

Definition at line 72 of file Image.cpp.

References MagickDLLDecl.

00074 { 00075 return ( ( left_ < right_ ) || ( left_ == right_ ) ); 00076 }

int MagickDLLDecl Magick::operator<= const Magick::Geometry left_,
const Magick::Geometry right_
 

Definition at line 62 of file Geometry.cpp.

00064 { 00065 return ( ( left_ < right_ ) || ( left_ == right_ ) ); 00066 }

MagickDLLDeclExtern int Magick::operator<= const PathQuadraticCurvetoArgs &  left_,
const PathQuadraticCurvetoArgs &  right_
 

Definition at line 1791 of file Drawable.cpp.

01793 { 01794 return ( ( left_ < right_ ) || ( left_ == right_ ) ); 01795 }

MagickDLLDeclExtern int Magick::operator<= const PathCurvetoArgs &  left_,
const PathCurvetoArgs &  right_
 

Definition at line 1580 of file Drawable.cpp.

References MagickDLLDecl.

01582 { 01583 return ( ( left_ < right_ ) || ( left_ == right_ ) ); 01584 }

MagickDLLDeclExtern int Magick::operator<= const PathArcArgs &  left_,
const PathArcArgs &  right_
 

Definition at line 1429 of file Drawable.cpp.

References MagickDLLDecl.

01431 { 01432 return ( ( left_ < right_ ) || ( left_ == right_ ) ); 01433 }

MagickDLLDeclExtern int Magick::operator<= const VPath &  left_,
const VPath &  right_
 

Definition at line 207 of file Drawable.cpp.

References MagickDLLDecl.

00209 { 00210 return ( ( left_ < right_ ) || ( left_ == right_ ) ); 00211 }

MagickDLLDeclExtern int Magick::operator<= const Drawable &  left_,
const Drawable &  right_
 

Definition at line 127 of file Drawable.cpp.

References MagickDLLDecl.

00129 { 00130 return ( ( left_ < right_ ) || ( left_ == right_ ) ); 00131 }

MagickDLLDeclExtern int Magick::operator<= const Coordinate left_,
const Coordinate right_
 

Definition at line 47 of file Drawable.cpp.

References MagickDLLDecl.

00049 { 00050 return ( ( left_ < right_ ) || ( left_ == right_ ) ); 00051 }

int MagickDLLDecl Magick::operator<= const Magick::Color left_,
const Magick::Color right_
 

Definition at line 65 of file Color.cpp.

00067 { 00068 return ( ( left_ < right_ ) || ( left_ == right_ ) ); 00069 }

int MagickDLLDecl Magick::operator== const Magick::Image left_,
const Magick::Image right_
 

Definition at line 40 of file Image.cpp.

References Magick::Image::columns(), MagickDLLDecl, Magick::Image::rows(), and Magick::Image::signature().

00042 { 00043 // If image pixels and signature are the same, then the image is identical 00044 return ( ( left_.rows() == right_.rows() ) && 00045 ( left_.columns() == right_.columns() ) && 00046 ( left_.signature() == right_.signature() ) 00047 ); 00048 }

Here is the call graph for this function:

int MagickDLLDecl Magick::operator== const Magick::Geometry left_,
const Magick::Geometry right_
 

Definition at line 21 of file Geometry.cpp.

References Magick::Geometry::aspect(), Magick::Geometry::greater(), Magick::Geometry::height(), Magick::Geometry::isValid(), Magick::Geometry::less(), Magick::Geometry::percent(), Magick::Geometry::width(), Magick::Geometry::xNegative(), Magick::Geometry::xOff(), Magick::Geometry::yNegative(), and Magick::Geometry::yOff().

00023 { 00024 return ( 00025 ( left_.isValid() == right_.isValid() ) && 00026 ( left_.width() == right_.width() ) && 00027 ( left_.height() == right_.height() ) && 00028 ( left_.xOff() == right_.xOff() ) && 00029 ( left_.yOff() == right_.yOff() ) && 00030 ( left_.xNegative() == right_.xNegative() ) && 00031 ( left_.yNegative() == right_.yNegative() ) && 00032 ( left_.percent() == right_.percent() ) && 00033 ( left_.aspect() == right_.aspect() ) && 00034 ( left_.greater() == right_.greater() ) && 00035 ( left_.less() == right_.less() ) 00036 ); 00037 }

Here is the call graph for this function:

MagickDLLDeclExtern int Magick::operator== const PathQuadraticCurvetoArgs &  left_,
const PathQuadraticCurvetoArgs &  right_
 

Definition at line 1761 of file Drawable.cpp.

01763 { 01764 return ( 1 ); 01765 }

MagickDLLDeclExtern int Magick::operator== const PathCurvetoArgs &  left_,
const PathCurvetoArgs &  right_
 

Definition at line 1555 of file Drawable.cpp.

References MagickDLLDecl.

01557 { 01558 return ( 1 ); 01559 }

MagickDLLDeclExtern int Magick::operator== const PathArcArgs &  left_,
const PathArcArgs &  right_
 

Definition at line 1404 of file Drawable.cpp.

References MagickDLLDecl.

01406 { 01407 return ( 1 ); 01408 }

MagickDLLDeclExtern int Magick::operator== const VPath &  left_,
const VPath &  right_
 

Definition at line 182 of file Drawable.cpp.

References MagickDLLDecl.

00184 { 00185 return ( 1 ); 00186 }

MagickDLLDeclExtern int Magick::operator== const Drawable &  left_,
const Drawable &  right_
 

Definition at line 102 of file Drawable.cpp.

References MagickDLLDecl.

00104 { 00105 return ( 1 ); 00106 }

MagickDLLDeclExtern int Magick::operator== const Coordinate left_,
const Coordinate right_
 

Definition at line 20 of file Drawable.cpp.

References MagickDLLDecl, Magick::Coordinate::x(), and Magick::Coordinate::y().

00022 { 00023 return ( ( left_.x() == right_.x() ) && ( left_.y() == right_.y() ) ); 00024 }

Here is the call graph for this function:

int MagickDLLDecl Magick::operator== const Magick::Color left_,
const Magick::Color right_
 

Definition at line 21 of file Color.cpp.

References Magick::Color::blueQuantum(), Magick::Color::greenQuantum(), Magick::Color::isValid(), and Magick::Color::redQuantum().

00023 { 00024 return ( ( left_.isValid() == right_.isValid() ) && 00025 ( left_.redQuantum() == right_.redQuantum() ) && 00026 ( left_.greenQuantum() == right_.greenQuantum() ) && 00027 ( left_.blueQuantum() == right_.blueQuantum() ) 00028 ); 00029 }

Here is the call graph for this function:

int MagickDLLDecl Magick::operator> const Magick::Image left_,
const Magick::Image right_
 

Definition at line 54 of file Image.cpp.

References MagickDLLDecl.

00056 { 00057 return ( !( left_ < right_ ) && ( left_ != right_ ) ); 00058 }

int MagickDLLDecl Magick::operator> const Magick::Geometry left_,
const Magick::Geometry right_
 

Definition at line 43 of file Geometry.cpp.

00045 { 00046 return ( !( left_ < right_ ) && ( left_ != right_ ) ); 00047 }

MagickDLLDeclExtern int Magick::operator> const PathQuadraticCurvetoArgs &  left_,
const PathQuadraticCurvetoArgs &  right_
 

Definition at line 1773 of file Drawable.cpp.

01775 { 01776 return ( 0 ); 01777 }

MagickDLLDeclExtern int Magick::operator> const PathCurvetoArgs &  left_,
const PathCurvetoArgs &  right_
 

Definition at line 1565 of file Drawable.cpp.

References MagickDLLDecl.

01567 { 01568 return ( 0 ); 01569 }

MagickDLLDeclExtern int Magick::operator> const PathArcArgs &  left_,
const PathArcArgs &  right_
 

Definition at line 1414 of file Drawable.cpp.

References MagickDLLDecl.

01416 { 01417 return ( 0 ); 01418 }

MagickDLLDeclExtern int Magick::operator> const VPath &  left_,
const VPath &  right_
 

Definition at line 192 of file Drawable.cpp.

References MagickDLLDecl.

00194 { 00195 return ( 0 ); 00196 }

MagickDLLDeclExtern int Magick::operator> const Drawable &  left_,
const Drawable &  right_
 

Definition at line 112 of file Drawable.cpp.

References MagickDLLDecl.

00114 { 00115 return ( 0 ); 00116 }

MagickDLLDeclExtern int Magick::operator> const Coordinate left_,
const Coordinate right_
 

Definition at line 30 of file Drawable.cpp.

References MagickDLLDecl.

00032 { 00033 return ( !( left_ < right_ ) && ( left_ != right_ ) ); 00034 }

int MagickDLLDecl Magick::operator> const Magick::Color left_,
const Magick::Color right_
 

Definition at line 35 of file Color.cpp.

00037 { 00038 return ( !( left_ < right_ ) && ( left_ != right_ ) ); 00039 }

int MagickDLLDecl Magick::operator>= const Magick::Image left_,
const Magick::Image right_
 

Definition at line 67 of file Image.cpp.

References MagickDLLDecl.

00069 { 00070 return ( ( left_ > right_ ) || ( left_ == right_ ) ); 00071 }

int MagickDLLDecl Magick::operator>= const Magick::Geometry left_,
const Magick::Geometry right_
 

Definition at line 57 of file Geometry.cpp.

00059 { 00060 return ( ( left_ > right_ ) || ( left_ == right_ ) ); 00061 }

MagickDLLDeclExtern int Magick::operator>= const PathQuadraticCurvetoArgs &  left_,
const PathQuadraticCurvetoArgs &  right_
 

Definition at line 1785 of file Drawable.cpp.

01787 { 01788 return ( ( left_ > right_ ) || ( left_ == right_ ) ); 01789 }

MagickDLLDeclExtern int Magick::operator>= const PathCurvetoArgs &  left_,
const PathCurvetoArgs &  right_
 

Definition at line 1575 of file Drawable.cpp.

References MagickDLLDecl.

01577 { 01578 return ( ( left_ > right_ ) || ( left_ == right_ ) ); 01579 }

MagickDLLDeclExtern int Magick::operator>= const PathArcArgs &  left_,
const PathArcArgs &  right_
 

Definition at line 1424 of file Drawable.cpp.

References MagickDLLDecl.

01426 { 01427 return ( ( left_ > right_ ) || ( left_ == right_ ) ); 01428 }

MagickDLLDeclExtern int Magick::operator>= const VPath &  left_,
const VPath &  right_
 

Definition at line 202 of file Drawable.cpp.

References MagickDLLDecl.

00204 { 00205 return ( ( left_ > right_ ) || ( left_ == right_ ) ); 00206 }

MagickDLLDeclExtern int Magick::operator>= const Drawable &  left_,
const Drawable &  right_
 

Definition at line 122 of file Drawable.cpp.

References MagickDLLDecl.

00124 { 00125 return ( ( left_ > right_ ) || ( left_ == right_ ) ); 00126 }

MagickDLLDeclExtern int Magick::operator>= const Coordinate left_,
const Coordinate right_
 

Definition at line 42 of file Drawable.cpp.

References MagickDLLDecl.

00044 { 00045 return ( ( left_ > right_ ) || ( left_ == right_ ) ); 00046 }

int MagickDLLDecl Magick::operator>= const Magick::Color left_,
const Magick::Color right_
 

Definition at line 60 of file Color.cpp.

00062 { 00063 return ( ( left_ > right_ ) || ( left_ == right_ ) ); 00064 }

template<class InputIterator>
void Magick::quantizeImages InputIterator  first_,
InputIterator  last_,
bool  measureError_ = false
 

Definition at line 2178 of file STL.h.

References GetExceptionInfo(), GetImageException(), GetImageQuantizeError(), linkImages(), QuantizeImages(), SyncImage(), throwException(), and unlinkImages().

02180 { 02181 MagickLib::ExceptionInfo exceptionInfo; 02182 MagickLib::GetExceptionInfo( &exceptionInfo ); 02183 02184 linkImages( first_, last_ ); 02185 02186 MagickLib::QuantizeImages( first_->quantizeInfo(), 02187 first_->image() ); 02188 MagickLib::GetImageException( first_->image(), &exceptionInfo ); 02189 if ( exceptionInfo.severity > MagickLib::UndefinedException ) 02190 { 02191 unlinkImages( first_, last_ ); 02192 throwException( exceptionInfo ); 02193 } 02194 02195 MagickLib::Image* image = first_->image(); 02196 while( image != 0 ) 02197 { 02198 // Calculate quantization error 02199 if ( measureError_ ) 02200 MagickLib::GetImageQuantizeError( image ); 02201 02202 // Update DirectClass representation of pixels 02203 MagickLib::SyncImage( image ); 02204 02205 // Next image 02206 image=image->next; 02207 } 02208 02209 unlinkImages( first_, last_ ); 02210 }

Here is the call graph for this function:

template<class Container>
void Magick::readImages Container *  sequence_,
const Blob &  blob_
 

Definition at line 2228 of file STL.h.

References BlobToImage(), CloneImageInfo(), Magick::Blob::data(), DestroyImageInfo(), GetExceptionInfo(), insertImages(), Magick::Blob::length(), and throwException().

02229 { 02230 MagickLib::ImageInfo *imageInfo = MagickLib::CloneImageInfo(0); 02231 MagickLib::ExceptionInfo exceptionInfo; 02232 MagickLib::GetExceptionInfo( &exceptionInfo ); 02233 MagickLib::Image *images = MagickLib::BlobToImage( imageInfo, 02234 blob_.data(), 02235 blob_.length(), &exceptionInfo ); 02236 MagickLib::DestroyImageInfo(imageInfo); 02237 insertImages( sequence_, images ); 02238 throwException( exceptionInfo ); 02239 }

Here is the call graph for this function:

template<class Container>
void Magick::readImages Container *  sequence_,
const std::string &  imageSpec_
 

Definition at line 2215 of file STL.h.

References CloneImageInfo(), DestroyImageInfo(), GetExceptionInfo(), insertImages(), MaxTextExtent, ReadImage(), and throwException().

Referenced by main().

02216 { 02217 MagickLib::ImageInfo *imageInfo = MagickLib::CloneImageInfo(0); 02218 imageSpec_.copy( imageInfo->filename, MaxTextExtent-1 ); 02219 imageInfo->filename[ imageSpec_.length() ] = 0; 02220 MagickLib::ExceptionInfo exceptionInfo; 02221 MagickLib::GetExceptionInfo( &exceptionInfo ); 02222 MagickLib::Image* images = MagickLib::ReadImage( imageInfo, &exceptionInfo ); 02223 MagickLib::DestroyImageInfo(imageInfo); 02224 insertImages( sequence_, images); 02225 throwException( exceptionInfo ); 02226 }

Here is the call graph for this function:

MagickDLLDeclExtern void Magick::throwException MagickLib::ExceptionInfo exception_  ) 
 

Definition at line 277 of file Exception.cpp.

References BlobError, BlobFatalError, BlobWarning, CacheError, CacheFatalError, CacheWarning, CoderError, CoderFatalError, CoderWarning, ConfigureError, ConfigureFatalError, ConfigureWarning, CorruptImageError, CorruptImageFatalError, CorruptImageWarning, DelegateError, DelegateFatalError, DelegateWarning, _ExceptionInfo::description, DestroyExceptionInfo(), DrawError, DrawFatalError, DrawWarning, ExceptionType, FileOpenError, FileOpenFatalError, FileOpenWarning, GetExceptionInfo(), ImageError, ImageFatalError, ImageWarning, MagickDLLDecl, MissingDelegateError, MissingDelegateFatalError, MissingDelegateWarning, ModuleError, ModuleFatalError, ModuleWarning, MonitorError, MonitorFatalError, MonitorWarning, OptionError, OptionFatalError, OptionWarning, _ExceptionInfo::reason, RegistryError, RegistryFatalError, RegistryWarning, ResourceLimitError, ResourceLimitFatalError, ResourceLimitWarning, SetClientName(), _ExceptionInfo::severity, StreamError, StreamFatalError, StreamWarning, TypeError, TypeFatalError, TypeWarning, UndefinedException, XServerError, XServerFatalError, and XServerWarning.

Referenced by Magick::Image::addNoise(), Magick::Image::affineTransform(), animateImages(), appendImages(), averageImages(), Magick::Image::blur(), Magick::Image::border(), Magick::Image::boundingBox(), Magick::Image::channelDepth(), Magick::Image::charcoal(), Magick::Image::chop(), Magick::Image::clipMask(), coalesceImages(), Magick::CoderInfo::CoderInfo(), coderInfoList(), colorHistogram(), Magick::Image::colorize(), Magick::Image::convolve(), Magick::Image::crop(), deconstructImages(), Magick::Image::despeckle(), displayImages(), Magick::Image::edge(), Magick::Image::emboss(), Magick::Image::enhance(), Magick::Options::fillPattern(), Magick::Image::fillPattern(), flattenImages(), Magick::Image::flip(), Magick::Image::flop(), Magick::Image::format(), Magick::Image::frame(), Magick::Image::gaussianBlur(), Magick::Pixels::getConst(), Magick::Image::getConstPixels(), Magick::ImageRef::ImageRef(), Magick::Image::implode(), Magick::Image::magnify(), mapImages(), Magick::Image::medianFilter(), Magick::Image::minify(), Magick::Image::modifyImage(), Magick::Image::modulusDepth(), montageImages(), morphImages(), mosaicImages(), Magick::Image::oilPaint(), Magick::Color::operator=(), Magick::Image::penTexture(), Magick::Image::ping(), Magick::Image::process(), quantizeImages(), Magick::Image::quantumOperator(), Magick::Image::read(), readImages(), Magick::Image::reduceNoise(), Magick::Image::registerId(), Magick::Image::roll(), Magick::Image::rotate(), Magick::Image::sample(), Magick::Image::scale(), Magick::Image::shade(), Magick::Image::sharpen(), Magick::Image::shave(), Magick::Image::shear(), Magick::Image::spread(), Magick::Image::statistics(), Magick::Image::stegano(), Magick::Image::stereo(), Magick::Options::strokePattern(), Magick::Image::strokePattern(), Magick::Image::swirl(), throwExceptionExplicit(), Magick::Image::throwImageException(), Magick::Image::totalColors(), Magick::Image::type(), Magick::Image::unsharpmask(), Magick::Image::wave(), Magick::Image::write(), writeImages(), and Magick::Image::zoom().

00278 { 00279 // Just return if there is no reported error 00280 if ( exception_.severity == UndefinedException ) 00281 return; 00282 00283 // Format error message ImageMagick-style 00284 std::string message = SetClientName(0); 00285 if ( exception_.reason != 0 ) 00286 { 00287 message += std::string(": "); 00288 message += std::string(exception_.reason); 00289 } 00290 00291 if ( exception_.description != 0 ) 00292 message += " (" + std::string(exception_.description) + ")"; 00293 00294 00295 ExceptionType severity = exception_.severity; 00296 DestroyExceptionInfo( &exception_ ); 00297 GetExceptionInfo( &exception_ ); 00298 00299 switch ( severity ) 00300 { 00301 // Warnings 00302 case ResourceLimitWarning : 00303 throw WarningResourceLimit( message ); 00304 case TypeWarning : 00305 throw WarningType( message ); 00306 case OptionWarning : 00307 throw WarningOption( message ); 00308 case DelegateWarning : 00309 throw WarningDelegate( message ); 00310 case MissingDelegateWarning : 00311 throw WarningMissingDelegate( message ); 00312 case CorruptImageWarning : 00313 throw WarningCorruptImage( message ); 00314 case FileOpenWarning : 00315 throw WarningFileOpen( message ); 00316 case BlobWarning : 00317 throw WarningBlob ( message ); 00318 case StreamWarning : 00319 throw WarningStream ( message ); 00320 case CacheWarning : 00321 throw WarningCache ( message ); 00322 case CoderWarning : 00323 throw WarningCoder ( message ); 00324 case ModuleWarning : 00325 throw WarningModule( message ); 00326 case DrawWarning : 00327 throw WarningDraw( message ); 00328 case ImageWarning : 00329 throw WarningImage( message ); 00330 case XServerWarning : 00331 throw WarningXServer( message ); 00332 case MonitorWarning : 00333 throw WarningMonitor( message ); 00334 case RegistryWarning : 00335 throw WarningRegistry( message ); 00336 case ConfigureWarning : 00337 throw WarningConfigure( message ); 00338 // Errors 00339 case ResourceLimitError : 00340 case ResourceLimitFatalError : 00341 throw ErrorResourceLimit( message ); 00342 case TypeError : 00343 case TypeFatalError : 00344 throw ErrorType( message ); 00345 case OptionError : 00346 case OptionFatalError : 00347 throw ErrorOption( message ); 00348 case DelegateError : 00349 case DelegateFatalError : 00350 throw ErrorDelegate( message ); 00351 case MissingDelegateError : 00352 case MissingDelegateFatalError : 00353 throw ErrorMissingDelegate( message ); 00354 case CorruptImageError : 00355 case CorruptImageFatalError : 00356 throw ErrorCorruptImage( message ); 00357 case FileOpenError : 00358 case FileOpenFatalError : 00359 throw ErrorFileOpen( message ); 00360 case BlobError : 00361 case BlobFatalError : 00362 throw ErrorBlob ( message ); 00363 case StreamError : 00364 case StreamFatalError : 00365 throw ErrorStream ( message ); 00366 case CacheError : 00367 case CacheFatalError : 00368 throw ErrorCache ( message ); 00369 case CoderError : 00370 case CoderFatalError : 00371 throw ErrorCoder ( message ); 00372 case ModuleError : 00373 case ModuleFatalError : 00374 throw ErrorModule ( message ); 00375 case DrawError : 00376 case DrawFatalError : 00377 throw ErrorDraw ( message ); 00378 case ImageError : 00379 case ImageFatalError : 00380 throw ErrorImage ( message ); 00381 case XServerError : 00382 case XServerFatalError : 00383 throw ErrorXServer ( message ); 00384 case MonitorError : 00385 case MonitorFatalError : 00386 throw ErrorMonitor ( message ); 00387 case RegistryError : 00388 case RegistryFatalError : 00389 throw ErrorRegistry ( message ); 00390 case ConfigureError : 00391 case ConfigureFatalError : 00392 throw ErrorConfigure ( message ); 00393 case UndefinedException : 00394 default : 00395 throw ErrorUndefined( message ); 00396 } 00397 00398 }

Here is the call graph for this function:

MagickDLLDeclExtern void Magick::throwExceptionExplicit const MagickLib::ExceptionType  severity_,
const char *  reason_,
const char *  description_ = 0
 

Definition at line 261 of file Exception.cpp.

References ExceptionInfo, GetExceptionInfo(), MagickDLLDecl, throwException(), ThrowException(), and UndefinedException.

Referenced by Magick::CoderInfo::CoderInfo(), coderInfoList(), Magick::Image::colorize(), Magick::Image::colorMap(), Magick::Image::colorMapSize(), Magick::Image::directory(), Magick::Image::format(), Magick::Image::geometry(), Magick::MutexLock::lock(), Magick::Options::magick(), Magick::Image::montageGeometry(), Magick::MutexLock::MutexLock(), Magick::Image::opaque(), Magick::Geometry::operator std::string(), Magick::Image::pixelColor(), Magick::Image::transparent(), Magick::MutexLock::unlock(), and Magick::MutexLock::~MutexLock().

00264 { 00265 // Just return if there is no reported error 00266 if ( severity_ == UndefinedException ) 00267 return; 00268 00269 ExceptionInfo exception; 00270 00271 GetExceptionInfo( &exception ); 00272 ThrowException( &exception, severity_, reason_, description_ ); 00273 throwException( exception ); 00274 }

Here is the call graph for this function:

template<class InputIterator>
void Magick::unlinkImages InputIterator  first_,
InputIterator  last_
 

Definition at line 1707 of file STL.h.

Referenced by animateImages(), appendImages(), averageImages(), coalesceImages(), deconstructImages(), displayImages(), flattenImages(), mapImages(), montageImages(), morphImages(), mosaicImages(), quantizeImages(), and writeImages().

01708 { 01709 for( InputIterator iter = first_; iter != last_; ++iter ) 01710 { 01711 MagickLib::Image* image = iter->image(); 01712 image->previous = 0; 01713 image->next = 0; 01714 } 01715 }

template<class InputIterator>
void Magick::writeImages InputIterator  first_,
InputIterator  last_,
Blob *  blob_,
bool  adjoin_ = true
 

Definition at line 2267 of file STL.h.

References GetExceptionInfo(), ImageToBlob(), linkImages(), throwException(), unlinkImages(), and Magick::Blob::updateNoCopy().

02270 { 02271 02272 first_->adjoin( adjoin_ ); 02273 02274 linkImages( first_, last_ ); 02275 02276 MagickLib::ExceptionInfo exceptionInfo; 02277 MagickLib::GetExceptionInfo( &exceptionInfo ); 02278 size_t length = 2048; // Efficient size for small images 02279 void* data = MagickLib::ImageToBlob( first_->imageInfo(), 02280 first_->image(), 02281 &length, 02282 &exceptionInfo); 02283 blob_->updateNoCopy( data, length, Magick::Blob::MallocAllocator ); 02284 02285 unlinkImages( first_, last_ ); 02286 02287 throwException( exceptionInfo ); 02288 }

Here is the call graph for this function:

template<class InputIterator>
void Magick::writeImages InputIterator  first_,
InputIterator  last_,
const std::string &  imageSpec_,
bool  adjoin_ = true
 

Definition at line 2243 of file STL.h.

References GetExceptionInfo(), linkImages(), throwException(), unlinkImages(), and WriteImages().

Referenced by main().

02246 { 02247 02248 first_->adjoin( adjoin_ ); 02249 02250 MagickLib::ExceptionInfo exceptionInfo; 02251 MagickLib::GetExceptionInfo( &exceptionInfo ); 02252 02253 linkImages( first_, last_ ); 02254 int errorStat = MagickLib::WriteImages( first_->imageInfo(), 02255 first_->image(), 02256 imageSpec_.c_str(), 02257 &exceptionInfo ); 02258 unlinkImages( first_, last_ ); 02259 02260 if ( errorStat != false ) 02261 return; 02262 02263 throwException( exceptionInfo ); 02264 }

Here is the call graph for this function:


Variable Documentation

MagickDLLDecl const char * Magick::borderGeometryDefault = "6x6+0+0"
 

Definition at line 26 of file Image.cpp.

class MagickDLLDecl Magick::Color
 

Definition at line 16 of file Color.h.

Referenced by Magick::Options::backgroundColor(), Magick::Options::borderColor(), Magick::Options::boxColor(), colorHistogram(), Magick::Image::colorMap(), main(), Magick::Options::matteColor(), Magick::Image::matteColor(), Magick::Montage::penColor(), Magick::Image::pixelColor(), and Magick::Montage::updateMontageInfo().

MagickDLLDecl const char * Magick::frameGeometryDefault = "25x25+6+6"
 

Definition at line 27 of file Image.cpp.

class MagickDLLDecl Magick::Geometry
 

Definition at line 19 of file Geometry.h.

Referenced by Magick::Image::boundingBox(), Magick::Options::density(), Magick::Image::density(), Magick::Image::floodFillColor(), Magick::Image::geometry(), Magick::Image::isValid(), main(), Magick::Image::montageGeometry(), Magick::Options::page(), Magick::Image::page(), Magick::Options::size(), and Magick::Image::size().

class MagickDLLDecl Magick::Image
 

Definition at line 25 of file Options.h.

Referenced by Magick::Image::clipMask(), Magick::DrawableCompositeImage::filename(), Magick::DrawableCompositeImage::image(), and Magick::DrawableCompositeImage::operator=().

MagickCleanUp Magick::magickCleanUpGuard [static]
 

Definition at line 3753 of file Image.cpp.

MagickDLLDecl const char * Magick::raiseGeometryDefault = "6x6+0+0"
 

Definition at line 28 of file Image.cpp.


Generated on Mon Oct 25 13:47:09 2004 for ImageMagick by doxygen 1.3.7
ImageMagick Copyright © 2004, ImageMagick Studio LLC