Author |
Topic  |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 19 December 2004 : 12:25:05
|
Been looking at the different approaches for adding a logo/text to an image. I have a script that uses thumbnails that can be clicked on to show the larger image. I would like that larger image to have a watermark on it using a combination of code with the GDI. I have a good idea on how to do this, but I see that sr_erick (snowmobilefanatic.com) is already doing this so sr_erick, if you don't mind, can I see your code that does this so I don't have to re-invent the wheel? |
|
|
Steve D.
Average Member
  
USA
640 Posts |
|
DavidRhodes
Senior Member
   
United Kingdom
1222 Posts |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 20 December 2004 : 10:57:00
|
quote: Originally posted by DavidRhodes
That link I gave you last week has a bit on it http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/colorquant.asp That's for adding text though, you can also easily overlay an image over another image and set it's opacity to make it look like a watermark
Thanks... however I want to be able to do this in a way that nothing else has to be installed. Even though I host my own server and can tweak the heck out of it, I always approach my projects as if they are going to be hosted on an external server where I don't have access to installing additional components.
I've accomplished the effect in the past using the GDI with no problem and could reproduce something that would work, but I'm interested in how sr_erick accomplished it. |
|
 |
|
DavidRhodes
Senior Member
   
United Kingdom
1222 Posts |
Posted - 21 December 2004 : 08:46:26
|
quote: Originally posted by dayve Thanks... however I want to be able to do this in a way that nothing else has to be installed. Even though I host my own server and can tweak the heck out of it, I always approach my projects as if they are going to be hosted on an external server where I don't have access to installing additional components.
It's .NET, you don't need to "install" components, all required image manipulation objects are part of the framework anyway. |
The UK MkIVs Forum |
 |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 21 December 2004 : 10:42:49
|
ooops, I was looking at the page where it stated Download the DotNET_Color_Quantization_Code.exe sample file. thinking it was a .NET enhancement or additional component. my bad... |
|
 |
|
DavidRhodes
Senior Member
   
United Kingdom
1222 Posts |
Posted - 21 December 2004 : 11:47:24
|
yeah, there's 3 (i think) class files in the download, but you can just copy those into your application and compile |
The UK MkIVs Forum |
 |
|
|
Topic  |
|