How can I apply a Tone Curve preset to a bitmap?

After converting my shape to bitmap and applying an effect with my macro I'd then like to also apply a tone curve preset the bitmap. Can that be done?