As Shabbir says, this is pretty basic stuff. You can consider the line between the point of rotation and any given point (a pixel) as a vector. This vector can be expressed as an angle with respect to some coordinate system. To rotate it, one merely adds the angle of rotation. I suggest you review your trigonometry.
no i have already did that
even if i use getimage i get the image in the memory
but i cannot rotate through putimage as it only use top left corner and not the right corner
and even try to get the coordinates and put the image in new coordinates and do rotation like this
i used write algo but program gets terminated automatically and c gets closed