Show
Ignore:
Timestamp:
09/28/09 16:59:24 (6 months ago)
Author:
cristy
Message:
 
Location:
ImageMagick/trunk/Magick++/lib
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • ImageMagick/trunk/Magick++/lib/Image.cpp

    r3 r247  
    35133513{ 
    35143514  return Magick::Geometry( constImage()->columns, constImage()->rows ); 
     3515} 
     3516 
     3517// Splice image 
     3518void 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 ); 
    35153528} 
    35163529 
  • ImageMagick/trunk/Magick++/lib/Magick++/Image.h

    r3 r247  
    632632    void            solarize ( const double factor_ = 50.0 ); 
    633633     
     634    // Splice the background color into the image. 
     635    void            splice ( const Geometry &geometry_ ); 
     636 
    634637    // Spread pixels randomly within image by specified ammount 
    635638    void            spread ( const unsigned int amount_ = 3 ); 
  • ImageMagick/trunk/Magick++/lib/Magick++/STL.h

    r191 r247  
    10141014  private: 
    10151015    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; 
    10161028  }; 
    10171029 
  • ImageMagick/trunk/Magick++/lib/STL.cpp

    r3 r247  
    15221522} 
    15231523 
     1524// Splice the background color into the image. 
     1525Magick::spliceImage::spliceImage( const Magick::Geometry &geometry_ ) 
     1526  : _geometry( geometry_ ) 
     1527{ 
     1528} 
     1529void Magick::spliceImage::operator()( Magick::Image &image_ ) const 
     1530{ 
     1531  image_.splice( _geometry ); 
     1532} 
     1533 
    15241534// Subimage of an image sequence 
    15251535Magick::subImageImage::subImageImage( const unsigned int subImage_ )