From: cristy Date: Sun, 30 May 2010 01:16:06 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~9353 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5c7087e846b9e3f5601102abe6f768c5223e4baa;p=imagemagick --- diff --git a/Magick++/demo/demo.cpp b/Magick++/demo/demo.cpp index 59b1a5b50..38e8a4d01 100644 --- a/Magick++/demo/demo.cpp +++ b/Magick++/demo/demo.cpp @@ -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; diff --git a/Magick++/demo/zoom.cpp b/Magick++/demo/zoom.cpp index 32e73cd85..8db2c8e3d 100644 --- a/Magick++/demo/zoom.cpp +++ b/Magick++/demo/zoom.cpp @@ -159,9 +159,9 @@ int main(int argc,char **argv) if (resample.isValid()) { geometry = - Geometry(static_cast + Geometry(static_cast (image.columns()*((double)resample.width()/density.width())+0.5), - static_cast + static_cast (image.rows()*((double)resample.height()/density.height())+0.5)); image.density(resample); }