I have loaded and displayed an image using CxImage functionality. now i need to draw some default shapes like circles and rectangles and lines. There is no defined function in CxImage for these only Line function is available. With that have i drawn rectangle. But no idea on how to draw circle.
if not possible using CxImage then what are the other ways and how this can be made with CxImage complaint(ie: I dont want to rewrite my functions for Save, New, Load Etc).
To draw circle, you can have a look on Bresenham Circle Algorithm. Start with Wikipedia http://en.wikipedia.org/wiki/Midpoint_circle_algorithm, you will find nice simple C implementation and an optimized version. Adaptation to CxImage is straightforward.