How do I programmatically get a styled version of an image via imagecache in D7?
theme_image_style. Imagecache is replaced by image style in Drupal 7.
Example:

print theme('image_style',array('style_name' =&gt; 'thumbnail', 'path' =&gt; 'path/to/image'));