Click here to Skip to main content
15,914,409 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Chec whether an input is invalid Pin
Mudsoad11-Aug-07 3:40
Mudsoad11-Aug-07 3:40 
GeneralRe: Chec whether an input is invalid Pin
x-Taka-x11-Aug-07 8:02
x-Taka-x11-Aug-07 8:02 
GeneralRe: Chec whether an input is invalid Pin
Colin Angus Mackay11-Aug-07 8:12
Colin Angus Mackay11-Aug-07 8:12 
Questionmerge string on image Pin
eyes200710-Aug-07 22:38
eyes200710-Aug-07 22:38 
AnswerRe: merge string on image Pin
Guffa11-Aug-07 2:42
Guffa11-Aug-07 2:42 
GeneralRe: merge string on image Pin
eyes200711-Aug-07 3:26
eyes200711-Aug-07 3:26 
GeneralRe: merge string on image Pin
Dave Kreskowiak11-Aug-07 6:50
mveDave Kreskowiak11-Aug-07 6:50 
GeneralRe: merge string on image Pin
Csharp™11-Aug-07 23:00
Csharp™11-Aug-07 23:00 
i've made a quick example for you, i think people forget they come on these boards to help people out when they start giving out sharp answers instead of just helping with a code snippet that only takes a moment to make.


Code:

<br />
        <font face="Courier New" size="2"><font color="#008000">   '/// load original image from file as a Drawing.Image...</font><br />
        <font color="#0000FF">   Dim</font> img <font color="#0000FF">As</font> Image = Image.FromFile("<a href="file:///C:/Image1.png">C:\Image1.png</a>")<br />
        <font color="#008000">   '/// get hold of the Graphics object...</font><br />
           <font color="#0000FF">Dim</font> g <font color="#0000FF">As</font> Graphics = Graphics.FromImage(img)<br />
<font color="#008000">   '/// draw the String on the image...</font><br />
           g.DrawString("some text on an image!", <font color="#0000FF">New</font> Font(<font color="#0000FF">Me</font>.Font.Name, 16, FontStyle.Bold), <font color="#0000FF">New</font> SolidBrush(Color.Red), 10, 10, <font color="#0000FF">New</font> StringFormat(StringFormatFlags.DirectionVertical))<br />
        <font color="#008000">   '/// save as a new image so as to NOT replace original...</font><br />
           img.Save("C:\testing.jpg", Imaging.ImageFormat.Jpeg)<br />
        <font color="#008000">   '/// clean up...</font><br />
           g.Dispose()<br />
           img.Dispose()<br />
        <font color="#008000">   '/// test out on a picturebox to see if it's worked ( you could skip this & just look for the file )...</font><br />
           PictureBox1.SizeMode = PictureBoxSizeMode.StretchImage<br />
           PictureBox1.Image = Image.FromFile("C:\testing.jpg")</font><br><br />


hope it helps Smile | :) .


<font color="blue">Csharp</font> me = (<font color="blue">Csharp</font>)Dynamic_Sysop; <font color="#008000">// My Signature.</font><br><font color="#008000">$twins</font> = <font color="#008000">me.twins</font>(<font color="#800080">"Taylor"</font> , <font color="#800080">"Delta"</font>); <font color="#C0C0C0">// My twin daughters.</font><br>echo <font color="#008000">$twins</font>;

GeneralRe: merge string on image Pin
Dave Kreskowiak12-Aug-07 7:44
mveDave Kreskowiak12-Aug-07 7:44 
GeneralRe: merge string on image Pin
Csharp™12-Aug-07 9:01
Csharp™12-Aug-07 9:01 
GeneralRe: merge string on image Pin
Dave Kreskowiak12-Aug-07 15:41
mveDave Kreskowiak12-Aug-07 15:41 
GeneralRe: merge string on image Pin
eyes200712-Aug-07 20:02
eyes200712-Aug-07 20:02 
GeneralRe: merge string on image Pin
eyes200712-Aug-07 19:58
eyes200712-Aug-07 19:58 
QuestionHow to take servername Dynamically? Pin
Sipder10-Aug-07 21:10
Sipder10-Aug-07 21:10 
AnswerRe: How to take servername Dynamically? Pin
i gr810-Aug-07 21:33
i gr810-Aug-07 21:33 
GeneralRe: Pin
SamRST11-Aug-07 0:42
SamRST11-Aug-07 0:42 
GeneralRe: Pin
i gr811-Aug-07 23:02
i gr811-Aug-07 23:02 
Questionget window datetime type? Pin
Phan Van Thao10-Aug-07 20:08
Phan Van Thao10-Aug-07 20:08 
AnswerRe: get window datetime type? Pin
Sipder10-Aug-07 21:14
Sipder10-Aug-07 21:14 
GeneralRe: get window datetime type? [modified] Pin
Phan Van Thao10-Aug-07 22:25
Phan Van Thao10-Aug-07 22:25 
AnswerRe: get window datetime type? Pin
Guffa11-Aug-07 2:51
Guffa11-Aug-07 2:51 
Generalhow to use "CultureInfo.CurrentCulture.DateTimeFormat " Pin
Phan Van Thao12-Aug-07 15:41
Phan Van Thao12-Aug-07 15:41 
AnswerRe: how to use "CultureInfo.CurrentCulture.DateTimeFormat " Pin
Guffa13-Aug-07 2:08
Guffa13-Aug-07 2:08 
QuestionMonth Calendar Design Pin
R.Palanivel10-Aug-07 17:14
R.Palanivel10-Aug-07 17:14 
QuestionTabControl problem, need help Pin
mindgameny10-Aug-07 13:32
mindgameny10-Aug-07 13:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.