How to use theme_imagecache in drupal 7

    Drupal 7 has imagecache in its core so this function can be replaced by theme_image_style For example:
    <?php print theme('imagecache', '<presetname>', '<pathtoimage>', '<alt>', '<title>'); ?>
    Can be Written as
    <?php
    print theme('image_style', array('style_name' => '<presetname>', 'path' => '<pathtoimage>', 'alt' => '', 'title' => '', 'width' => '', 'height' => '')));
    ?>
    5
    Average: 5 (1 vote)