Imagemagick scripting using OO interface?

I’m a beginner web developer but want to play around with imagemagick

I’ve been working from the example on the wiki:

which shows a command-line style(?) of developing for imagemagick.

but tutorials on show a simpler 'OO interface’

<?php header('Content-type: image/jpeg'); $image = new Imagick('image.jpg'); // If 0 is provided as a width or height parameter, // aspect ratio is maintained $image->thumbnailImage(100, 0); echo $image; ?>

is there a way to access imagemagick using OO interface on dreamhost shared hosting?