|
|
|
Click here to copy the following block | Sub ShowImage(ByVal bmp As Bitmap) HttpContext.Current.Response.Clear() HttpContext.Current.Response.ContentType = "image/jpeg" bmp.Save(HttpContext.Current.Response.OutputStream, _ Imaging.ImageFormat.Jpeg)
bmp.Dispose() HttpContext.Current.Response.End() End Sub
Private Sub Page_Load(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles MyBase.Load Dim bmp As New Bitmap(400, 200, _ Drawing.Imaging.PixelFormat.Format16bppRgb565) Dim gr As Graphics = Graphics.FromImage(bmp) gr.Clear(Color.Red)
Dim fnt As New Font("Arial", 16, FontStyle.Regular, GraphicsUnit.Point)
Dim angle As Single For angle = 0 To 360 Step 30 gr.ResetTransform() gr.TranslateTransform(200, 100) gr.RotateTransform(angle) gr.DrawString(" hello", fnt, Brushes.Yellow, 0, 0) Next fnt.Dispose() gr.Dispose()
ShowImage(bmp) End Sub |
|
|
|
Submitted By :
Nayan Patel
(Member Since : 5/26/2004 12:23:06 PM)
|
|
|
Job Description :
He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting. |
View all (893) submissions by this author
(Birth Date : 7/14/1981 ) |
|
|