Magick++/lib/Options.cpp
// Pattern image to use when filling objects
Pattern image to use when filling objects
Pattern image to use when filling objects
void Magick::Options::fillPattern ( const MagickCore::Image *fillPattern_ )
{
  if ( _drawInfo->fill_pattern )
    {
      DestroyImageList( _drawInfo->fill_pattern );
      _drawInfo->fill_pattern = 0;
    }
  if ( fillPattern_ )
    {
      ExceptionInfo exceptionInfo;
      GetExceptionInfo( &exceptionInfo );
      _drawInfo->fill_pattern =
	CloneImage( const_cast<MagickCore::Image*>(fillPattern_),
		    0,
		    0,
		    static_cast<MagickBooleanType>(MagickTrue),
		    &exceptionInfo );
      throwException( exceptionInfo );
      (void) DestroyExceptionInfo( &exceptionInfo );
    }
}
void Magick :: Options :: fillPattern ( const MagickCore :: Image * fillPattern_ ) { if ( _drawInfo -> fill_pattern ) { DestroyImageList ( _drawInfo -> fill_pattern ) ; _drawInfo -> fill_pattern = 0 ; } if ( fillPattern_ ) { ExceptionInfo exceptionInfo ; GetExceptionInfo ( & exceptionInfo ) ; _drawInfo -> fill_pattern = CloneImage ( const_cast < MagickCore :: Image * > ( fillPattern_ ) , 0 , 0 , static_cast < MagickBooleanType > ( MagickTrue ) , & exceptionInfo ) ; throwException ( exceptionInfo ) ; ( void ) DestroyExceptionInfo ( & exceptionInfo ) ; } }
Pattern image to use when filling objects
Pattern image to use when filling objects