V
Vikas Kumar
I am writing Hello on the image i am able to write it sucessfully now I want
to
write it at bottom right corner
How can I calculate the co-ordinates(suppose my image is 600*450)
string str="Hello";
Bitmap tempImage=new
System.Drawing.Bitmap(Server.MapPath("/Photos/21/Normal/1.jpg"));
Graphics graphicImage=System.Drawing.Graphics.FromImage(tempImage);
graphicImage.DrawString(str,new Font("Arial", 10,FontStyle.Regular),new
SolidBrush(Color.Black),new Point(0,0));
Response.ContentType="image/jpeg";
tempImage.Save("D:/test.jpg",ImageFormat.Jpeg);
graphicImage.Dispose();
tempImage.Dispose();
to
write it at bottom right corner
How can I calculate the co-ordinates(suppose my image is 600*450)
string str="Hello";
Bitmap tempImage=new
System.Drawing.Bitmap(Server.MapPath("/Photos/21/Normal/1.jpg"));
Graphics graphicImage=System.Drawing.Graphics.FromImage(tempImage);
graphicImage.DrawString(str,new Font("Arial", 10,FontStyle.Regular),new
SolidBrush(Color.Black),new Point(0,0));
Response.ContentType="image/jpeg";
tempImage.Save("D:/test.jpg",ImageFormat.Jpeg);
graphicImage.Dispose();
tempImage.Dispose();