Changeset 247 for ImageMagick/trunk/Magick++/lib
- Timestamp:
- 09/28/09 16:59:24 (6 months ago)
- Location:
- ImageMagick/trunk/Magick++/lib
- Files:
-
- 4 modified
-
Image.cpp (modified) (1 diff)
-
Magick++/Image.h (modified) (1 diff)
-
Magick++/STL.h (modified) (1 diff)
-
STL.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ImageMagick/trunk/Magick++/lib/Image.cpp
r3 r247 3513 3513 { 3514 3514 return Magick::Geometry( constImage()->columns, constImage()->rows ); 3515 } 3516 3517 // Splice image 3518 void Magick::Image::splice( const Geometry &geometry_ ) 3519 { 3520 RectangleInfo spliceInfo = geometry_; 3521 ExceptionInfo exceptionInfo; 3522 GetExceptionInfo( &exceptionInfo ); 3523 MagickCore::Image* newImage = 3524 SpliceImage( image(), &spliceInfo, &exceptionInfo); 3525 replaceImage( newImage ); 3526 throwException( exceptionInfo ); 3527 (void) DestroyExceptionInfo( &exceptionInfo ); 3515 3528 } 3516 3529 -
ImageMagick/trunk/Magick++/lib/Magick++/Image.h
r3 r247 632 632 void solarize ( const double factor_ = 50.0 ); 633 633 634 // Splice the background color into the image. 635 void splice ( const Geometry &geometry_ ); 636 634 637 // Spread pixels randomly within image by specified ammount 635 638 void spread ( const unsigned int amount_ = 3 ); -
ImageMagick/trunk/Magick++/lib/Magick++/STL.h
r191 r247 1014 1014 private: 1015 1015 double _factor; 1016 }; 1017 1018 // Splice the background color into the image. 1019 class MagickDLLDecl spliceImage : public std::unary_function<Image&,void> 1020 { 1021 public: 1022 spliceImage( const Geometry &geometry_ ); 1023 1024 void operator()( Image &image_ ) const; 1025 1026 private: 1027 Geometry _geometry; 1016 1028 }; 1017 1029 -
ImageMagick/trunk/Magick++/lib/STL.cpp
r3 r247 1522 1522 } 1523 1523 1524 // Splice the background color into the image. 1525 Magick::spliceImage::spliceImage( const Magick::Geometry &geometry_ ) 1526 : _geometry( geometry_ ) 1527 { 1528 } 1529 void Magick::spliceImage::operator()( Magick::Image &image_ ) const 1530 { 1531 image_.splice( _geometry ); 1532 } 1533 1524 1534 // Subimage of an image sequence 1525 1535 Magick::subImageImage::subImageImage( const unsigned int subImage_ )
