Код: Выделить всё
System.Drawing.Bitmap b = new
System.Drawing.Bitmap("C:*Location of file on computer*");
Код: Выделить всё
public static void ratio(System.Drawing.Bitmap b, Dictionary map)
{
double height=0;
double width=0;
foreach (KeyValuePair place in map)
{
height = place.Value[2] - place.Value[3];
width = place.Value[0] - place.Value[1];
if( ((height/width) >= 1) && ((height/width)
Подробнее здесь: [url]https://stackoverflow.com/questions/17552908/drawing-a-line-on-a-bitmap[/url]
Мобильная версия