]> granicus.if.org Git - imagemagick/blobdiff - Magick++/demo/demo.cpp
(no commit message)
[imagemagick] / Magick++ / demo / demo.cpp
index e9cb4b1b9a54d1a45038b21c803d5067a5a8b55c..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;
@@ -442,8 +442,8 @@ int main( int /*argc*/, char ** argv)
       cout << "  threshold random ..." << endl;
       example = model;
       example.label( "Random\nThreshold" );
-      example.randomThreshold( Geometry((unsigned int) (0.3*QuantumRange),
-        (unsigned int) (0.85*QuantumRange)) );
+      example.randomThreshold( Geometry((size_t) (0.3*QuantumRange),
+        (size_t) (0.85*QuantumRange)) );
       images.push_back( example );
     
       cout << "  unsharp mask ..." << 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,11 +499,11 @@ 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;
-    writeImages(montage.begin(),montage.end(),"demo_out.miff");
+    writeImages(montage.begin(),montage.end(),"demo_out_%d.miff");
 
     // Uncomment following lines to display image to screen
     //    cout <<  "Display image..." << endl;