|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
GDI+ questionHello!
help anybody please with this simple task using VB.NET: I have an image having size 320x240 at "C:\myImage.JPG". I want to put some text, say "Hello World!" (arial 20, red) somewhere on the image and save it as "C:\myImage1.JPG". any help will be greatly appreciated, thanks in advance! Adriano Adriano wrote:
Show quoteHide quote > Hello! Very rough off the top of my head but ...> > help anybody please with this simple task using VB.NET: > I have an image having size 320x240 at "C:\myImage.JPG". > I want to put some text, say "Hello World!" (arial 20, red) somewhere on the > image and > save it as "C:\myImage1.JPG". > > any help will be greatly appreciated, > > thanks in advance! > Adriano > > Using oImage As New (open the bitmap or whatever here) Dim g As Graphics = Graphics.FromImage(oImage) g.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAlias g.SmoothingMode = SmoothingMode.AntiAlias g.DrawString(<font details and text etc>) oImage.Save(<filename>, ImageFormat.??????????) End Using Hello Mark!
I really appreciate your help!!! Regards, Adriano Show quoteHide quote "Mark Keogh" <m@ark.com> wrote in message news:eHfs%23lblGHA.5044@TK2MSFTNGP02.phx.gbl... > Adriano wrote: >> Hello! >> >> help anybody please with this simple task using VB.NET: >> I have an image having size 320x240 at "C:\myImage.JPG". >> I want to put some text, say "Hello World!" (arial 20, red) somewhere on >> the image and >> save it as "C:\myImage1.JPG". >> >> any help will be greatly appreciated, >> >> thanks in advance! >> Adriano >> >> > > Very rough off the top of my head but ... > > Using oImage As New (open the bitmap or whatever here) > > Dim g As Graphics = Graphics.FromImage(oImage) > > g.TextRenderingHint = > System.Drawing.Text.TextRenderingHint.AntiAlias > g.SmoothingMode = SmoothingMode.AntiAlias > > g.DrawString(<font details and text etc>) > oImage.Save(<filename>, ImageFormat.??????????) > > End Using
Vb 2005 equivalent to VB6 CreateObject
Object reference not set to an instance of an object error User Control c# to vb.net conversion storing unicode in byte array? Using VS 2005 What do I load ? String parameter dll function my challenges with merging 2 Regex.Matches Schema Information not found in web.config |
|||||||||||||||||||||||