Watermark to a picture (video)(with source code)
Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
9 posts
Page 1 of 1
\
I KNOW I FORGOT SOMETHING ;o
Last edited by Danny on Wed Aug 17, 2011 8:17 am, edited 2 times in total.
himeji-jo wrote:It wont work if you use the graphics from the control and not its image... We just had a topic about this.Code: Select allcode: Dim NF As New Font("Impact", 36, FontStyle.Italic) Dim NB As New SolidBrush(Color.FromArgb(64, 192, 255, 255)) NB.Color = Color.FromArgb(128, 0, 0, 0) PictureBox1.CreateGraphics.DrawString(TextBox1.Text, NF, NB, 15, 135)
You need the graphics from the image!
Code: Select all
Dim GFX As Graphics = Graphics.FromImage(PictureBox1.Image)
GFX.DrawString(TextBox1.Text, NF, NB, 15, 135)
GFX.Dispose 'Reduce memory loss
LMAOSHMSFOAIDMT
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;
Over 30 projects with source code!
Please give reputation to helpful members!
![Image]()
![Image]()
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;
Over 30 projects with source code!
Please give reputation to helpful members!

MrAksel wrote:oops forgot that!himeji-jo wrote:It wont work if you use the graphics from the control and not its image... We just had a topic about this.Code: Select allcode: Dim NF As New Font("Impact", 36, FontStyle.Italic) Dim NB As New SolidBrush(Color.FromArgb(64, 192, 255, 255)) NB.Color = Color.FromArgb(128, 0, 0, 0) PictureBox1.CreateGraphics.DrawString(TextBox1.Text, NF, NB, 15, 135)
You need the graphics from the image!Code: Select allDim GFX As Graphics = Graphics.FromImage(PictureBox1.Image) GFX.DrawString(TextBox1.Text, NF, NB, 15, 135) GFX.Dispose 'Reduce memory loss
I thought we already explained to him about this..:S
Yea its just that. Lol had a hard knock in your head lately?
LMAOSHMSFOAIDMT
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;
Over 30 projects with source code!
Please give reputation to helpful members!
![Image]()
![Image]()
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;
Over 30 projects with source code!
Please give reputation to helpful members!

Should we give him the clamps? (Futurama reference)
Zulf wrote:I thought we already explained to him about this..:Ssorry ;o I am just tired ;o and forgot that piece of code
"Not my clampin' hand, they took my clampin' hand!"
Anyways, neat tutorial, I think it would be good for a paint-like application.
Anyways, neat tutorial, I think it would be good for a paint-like application.
9 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023