]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Fri, 10 Jan 2014 12:51:58 +0000 (12:51 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Fri, 10 Jan 2014 12:51:58 +0000 (12:51 +0000)
Magick++/demo/demo.cpp
Magick++/demo/detrans.cpp

index 38e8a4d01ad91c2dd3efddbc664be50d3943c1d7..963b2ab96c2243c9c9d30281bd611b43b6ed7008 100644 (file)
@@ -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;
index 1a515b162db3f8c6be61e08e4e3b3967db005bd8..7e075eb30f3a09bd8d1ca1d4f7517ca577c8af93 100644 (file)
@@ -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_ )