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
Contributors
User avatar
Danny
VIP - Donator
VIP - Donator
Posts: 621
Joined: Sat Oct 30, 2010 8:21 pm

\
I KNOW I FORGOT SOMETHING ;o
Last edited by Danny on Wed Aug 17, 2011 8:17 am, edited 2 times in total.
User avatar
MrAksel
C# Coder
C# Coder
Posts: 1758
Joined: Fri Mar 26, 2010 12:27 pm

himeji-jo wrote:
Code: Select all
code:
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)
It wont work if you use the graphics from the control and not its image... We just had a topic about this.
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
User avatar
Danny
VIP - Donator
VIP - Donator
Posts: 621
Joined: Sat Oct 30, 2010 8:21 pm

MrAksel wrote:
himeji-jo wrote:
Code: Select all
code:
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)
It wont work if you use the graphics from the control and not its image... We just had a topic about this.
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
oops forgot that!
User avatar
Zulf
Serious Programmer
Serious Programmer
Posts: 441
Joined: Fri Jun 11, 2010 7:46 am

I thought we already explained to him about this..:S
Image
User avatar
MrAksel
C# Coder
C# Coder
Posts: 1758
Joined: Fri Mar 26, 2010 12:27 pm

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
User avatar
Zulf
Serious Programmer
Serious Programmer
Posts: 441
Joined: Fri Jun 11, 2010 7:46 am

Should we give him the clamps? (Futurama reference)
Image
User avatar
Danny
VIP - Donator
VIP - Donator
Posts: 621
Joined: Sat Oct 30, 2010 8:21 pm

Zulf wrote:
I thought we already explained to him about this..:S
sorry ;o I am just tired ;o and forgot that piece of code
User avatar
Danny
VIP - Donator
VIP - Donator
Posts: 621
Joined: Sat Oct 30, 2010 8:21 pm

what?
User avatar
2cool4cereal2
VIP - Donator
VIP - Donator
Posts: 151
Joined: Thu Oct 14, 2010 3:26 am

"Not my clampin' hand, they took my clampin' hand!"

Anyways, neat tutorial, I think it would be good for a paint-like application.
"I try to be modest at all times, and that's what makes me better than everyone else."
Image
Image
Image
9 posts Page 1 of 1
Return to “Tutorials”