Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear Friends,

I have a map Image(.jpg/.jpeg) and I have to plot certain region in image and save it to db.so I can plot/pin that particular location/region in Image dynamically.


It is possible ??


Kindly help me.

Thanks in Advance
Posted

1 solution

Say, you can draw one image on another image. Locate one of the methods System.Drawing.Graphics.DrawImage, the one which "draws the specified portion of the specified Image at the specified location and with the specified size":
https://msdn.microsoft.com/en-us/library/system.drawing.graphics.drawimage%28v=vs.110%29.aspx[^].

This way, you can create an image showing a copy of a required part of your original image. First, you need to create a target image of required size and obtain the instance of System.Drawing.Graphics using the method System.Drawing.Graphics.FromImage:
https://msdn.microsoft.com/en-us/library/system.drawing.graphics.fromimage(v=vs.110).aspx[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900