From 694da975d5e7334c1958edd559cea773a584b475 Mon Sep 17 00:00:00 2001 From: cristy Date: Fri, 10 Jan 2014 12:51:58 +0000 Subject: [PATCH] --- Magick++/demo/demo.cpp | 6 +++--- Magick++/demo/detrans.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Magick++/demo/demo.cpp b/Magick++/demo/demo.cpp index 38e8a4d01a..963b2ab96c 100644 --- a/Magick++/demo/demo.cpp +++ b/Magick++/demo/demo.cpp @@ -324,7 +324,7 @@ int main( int /*argc*/, char ** argv) cout << " ordered dither red 4x4..." << endl; example = model; example.label( "Ordered Dither\n(Red 4x4)" ); - example.randomThresholdChannel( Geometry(4,4), RedChannel); + example.randomThresholdChannel( RedChannel, Geometry(4,4)); images.push_back( example ); cout << " plasma ..." << endl; @@ -456,7 +456,7 @@ int main( int /*argc*/, char ** argv) cout << " wave ..." << endl; example = model; example.label( "Wave" ); - example.matte( true ); + example.alpha( true ); example.backgroundColor( "#000000FF" ); example.wave( 25, 150 ); images.push_back( example ); @@ -499,7 +499,7 @@ int main( int /*argc*/, char ** argv) } for_each( montage.begin(), montage.end(), depthImage(8) ); - for_each( montage.begin(), montage.end(), matteImage( false ) ); + for_each( montage.begin(), montage.end(), alphaImage( false ) ); for_each( montage.begin(), montage.end(), compressTypeImage( RLECompression) ); cout << "Writing image \"demo_out.miff\" ..." << endl; diff --git a/Magick++/demo/detrans.cpp b/Magick++/demo/detrans.cpp index 1a515b162d..7e075eb30f 100644 --- a/Magick++/demo/detrans.cpp +++ b/Magick++/demo/detrans.cpp @@ -45,7 +45,7 @@ int main(int argc,char **argv) Image overlay( fname ); Image base( overlay.size(), color ); base.composite( overlay, 0, 0, OverCompositeOp ); - base.matte( false ); + base.alpha( false ); base.write( fname ); } catch( Exception &error_ )