Magick++/lib/Options.cpp
// Pattern image to use for stroked outlines
Pattern image to use for stroked outlines
Pattern image to use for stroked outlines
void Magick::Options::strokePattern ( const MagickCore::Image *strokePattern_ )
{
  if ( _drawInfo->stroke_pattern )
    {
      DestroyImageList( _drawInfo->stroke_pattern );
      _drawInfo->stroke_pattern = 0;
    }
  if ( strokePattern_ )
    {
      ExceptionInfo exceptionInfo;
      GetExceptionInfo( &exceptionInfo );
      _drawInfo->stroke_pattern =
	CloneImage( const_cast<MagickCore::Image*>(strokePattern_),
		    0,
		    0,
		    MagickTrue,
		    &exceptionInfo );
      throwException( exceptionInfo );
      (void) DestroyExceptionInfo( &exceptionInfo );
    }
}
void Magick :: Options :: strokePattern ( const MagickCore :: Image * strokePattern_ ) { if ( _drawInfo -> stroke_pattern ) { DestroyImageList ( _drawInfo -> stroke_pattern ) ; _drawInfo -> stroke_pattern = 0 ; } if ( strokePattern_ ) { ExceptionInfo exceptionInfo ; GetExceptionInfo ( & exceptionInfo ) ; _drawInfo -> stroke_pattern = CloneImage ( const_cast < MagickCore :: Image * > ( strokePattern_ ) , 0 , 0 , MagickTrue , & exceptionInfo ) ; throwException ( exceptionInfo ) ; ( void ) DestroyExceptionInfo ( & exceptionInfo ) ; } }
Pattern image to use for stroked outlines
Pattern image to use for stroked outlines