Some edible flowers hold up much better to the baking process than others. Pansies and violas do well, and hold their color, deepening in shades as they are baked.
Edible flowers can be baked onto the tops of your cookies, or placed onto the cookies without baking, by adding them on to freshly iced cookies, for a colorful garnish.