The sample source codes on this page shows how to add watermark to image in ASP classic. Want to add watermark to image in your ASP classic app? ByteScout Watermarking SDK is designed for it. ByteScout Watermarking SDK is the powerful SDK can apply high quality visible and semivisible watermarks into PNG, JPG, BMP pictures and TIFF scans. Doznes of presets are available, multiple watermarks can be applied. Can add logo based watermark from image, can adjust font size, font family, colors.
This rich sample source code in ASP classic for ByteScout Watermarking SDK includes the number of functions and options you should do calling the API to add watermark to image. This ASP classic sample code is all you need for your app. Just copy and paste the code, add references (if needs to) and you are all set! Test ASP classic sample code examples whether they respond your needs and requirements for the project.
Trial version of ByteScout Watermarking SDK can be downloaded for free from our website. It also includes source code samples for ASP classic and other programming languages.
On-demand (REST Web API) version:
Web API (on-demand version)
On-premise offline SDK for Windows:
60 Day Free Trial (on-premise)
<% ' In case of "Server.CreateObject Failed", "Server object error "ASP 0177 : 8000ffff" or similar errors: ' Please try the following: ' - Open IIS ' - Find application pools (DefaultAppPool is used by default) ' - Open its properties and check .NET CLR version selected: ' - if you have .NET 1.1 then change to .NET CLR 2.00 ' - if you have .NET CLR 2.00 then try to change to .NET CLR 4.0 Set watermarker = Server.CreateObject("Bytescout.Watermarking.Watermarker") ' Initialize library watermarker.InitLibrary "demo", "demo" ' Set input file name Dim inputFilePath inputFilePath = Server.MapPath("sample_image.jpg") ' Add image to apply watermarks to watermarker.AddInputFile inputFilePath ' Create new watermark Set preset = Server.CreateObject("Bytescout.Watermarking.Presets.SimpleText") ' Set watermark text preset.Text = "Bytescout Watermarking SDK" ' Set watermark font Set font = Server.CreateObject("Bytescout.Watermarking.WatermarkFont") font.Name = "Arial" font.Style = 1 ' Bold font.SizeType = 1 ' Points font.Size = 18 preset.Font = font ' Set watermark text color preset.SetTextColor 255, 255, 255, 255 ' White color in ARGB values ' Add watermark to watermarker waterMarker.AddWatermark(preset) ' Apply watermarks waterMarker.Execute() ' generate and get barcode image as PNG image array of bytes OutImage = bc.GetImageBytes response.ContentType = "image/png" ' add content type header response.AddHeader "Content-Type", "image/png" ' set the content disposition response.AddHeader "Content-Disposition", "inline;filename=OutImage.png" ' write the binary image to the Response output stream response.BinaryWrite OutImage response.End ' Cleanup Set font = Nothing Set preset = Nothing Set watermarker = Nothing %>
60 Day Free Trial or Visit ByteScout Watermarking SDK Home Page
Explore ByteScout Watermarking SDK Documentation
Explore Samples
Sign Up for ByteScout Watermarking SDK Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
60 Day Free Trial or Visit ByteScout Watermarking SDK Home Page
Explore ByteScout Watermarking SDK Documentation
Explore Samples
Sign Up for ByteScout Watermarking SDK Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples