New Message on dotNET User Group Hyd

Stamping the images with text in ASP.dot net

Reply
  Reply to Sender   Recommend Message 9 in Discussion
From: hemakumarmca

with this code i am just displaying the image how to save the image.i want to save the image physically .

Dim FileName As String

Dim Message As String = Session("Name")

FileName = Session("MyPath")

Dim FillColor As Color = Color.FromArgb(127, 255, 255, 255)

Dim FillBrush As SolidBrush = New SolidBrush(FillColor)

Dim FillRectangle As Rectangle = New Rectangle(5, 5, 310, 50)

Dim TextFont As Font = New Font("Times New Roman", 20)

Dim TextBrush As SolidBrush = New SolidBrush(Color.BlueViolet)

Dim TextFormat As StringFormat = New StringFormat()

TextFormat.Alignment = StringAlignment.Center

TextFormat.LineAlignment = StringAlignment.Center

Dim GreetingImage As System.Drawing.Image = System.Drawing.Image.FromFile(Server.MapPath(FileName))

Dim DrawingSurface As Graphics = Graphics.FromImage(GreetingImage)

DrawingSurface.DrawString(Message, TextFont, TextBrush, 0, 0)

Dim Output As Stream = Response.OutputStream

GreetingImage.Save(Output, ImageFormat.Jpeg)


View other groups in this category.

Click here!
Also on MSN:
Start Chatting | Listen to Music | House & Home | Try Online Dating | Daily Horoscopes

To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings.

Need help? If you've forgotten your password, please go to Passport Member Services.
For other questions or feedback, go to our Contact Us page.

If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list.
Remove my e-mail address from dotNET User Group Hyd.

Reply via email to