tmijo

tmijo

  • NA
  • 2
  • 0

Help needed Mahesh

May 19 2004 7:57 AM
Dear Mahesh, I'am trying to develop an image annotation component in which i got a picturebox to display image.The basic functionalities are rotating the image,drawing basic shapes such as rectangle,ellipse,lines etc over the image. I'am thru with rotating the image.The code used 4 that is given below float temp = AI.Width; AI.Width = AI.Height; AI.Height = temp; temp = pictureBoxTIFF.Width; pictureBoxTIFF.Width = pictureBoxTIFF.Height; pictureBoxTIFF.Height = (int)temp; image.RotateFlip(RotateFlipType.Rotate270FlipNone); But now the problem comes into play.... I'am trying 2 draw a rectangle on the image and rotating the image...But the rectangle is not getting rotated...Could u tell me some APIFunctions which can do the thing... Or in more clear terms the rectangle is not highlighting the area which it should be after rotation.Could u tell me how to rotate the rectangle along with the image... Is ther any wayz of gluing the rectangle to the image??? I tried out with using Graphics object from the image...But it'z showing an exception that Graphics object could not be created from an image having indexed pixel format!!!! Could u help me out of this problems... Regards, mmx_nexus

Answers (1)