473,386 Members | 1,962 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Watermarks printing

I use the code at the of this message to add a copyright text ( watermark )
on image printing.
I would like to have a text Opacity at 30%.
On print preview and normal view all is ok , but when I print the image the
copyright text has the background and opacity at 100%. ( so it covers my
image ).

I've tried also with AlphaImageLoader (.copyImg class) but the result is the
same.
So ... how can I print a image with a "watermark" one th background ?
Any ideas ?
Thanks in advance

<head>
<style>

img.diagram{
position:absolute;
top:0;
left:0;
}

..copy{
position:absolute;
top:30;left:30;width:200;height:30;
color:gray;
font-family:Verdana;
font-size:30;
/*filter:alpha(opacity=40);*/

filter:progid:DXImageTransform.Microsoft.BasicImag e(Rotation=0,Mirror=0,Inve
rt=0,XRay=0,Grayscale=0,Opacity=0.30);

}

..copyImg{
position:absolute;
top:70;left:30;width:200;height:30;

filter:progid:DXImageTransform.Microsoft.AlphaImag eLoader(src='copy.png',
sizingMethod='scale');"
}

</style>
<head>
<body>
<img src="imageToProtect.png" class="diagram" >

<div src="copy.png" class="copyImg" ></div>

<div> My copyright ® </div>

</body>
Dec 13 '05 #1
4 2635
Michele said the following on 12/13/2005 5:46 AM:
I use the code at the of this message to add a copyright text ( watermark )
on image printing.
I would like to have a text Opacity at 30%.
On print preview and normal view all is ok , but when I print the image the
copyright text has the background and opacity at 100%. ( so it covers my
image ).

I've tried also with AlphaImageLoader (.copyImg class) but the result is the
same.
So ... how can I print a image with a "watermark" one th background ?
Any ideas ?
Thanks in advance


Open your Graphics Editor.
Open your Graphic File.
Add the watermark.
Save the Graphic File.

Now, your graphic has a watermark on it.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Dec 13 '05 #2
Ok ... the problem is that I've to add the watermarks on the fly ,
dinamically , without modifing the original images, for
printing only.

"Randy Webb" <Hi************@aol.com> ha scritto nel messaggio
news:DJ******************************@comcast.com. ..
Michele said the following on 12/13/2005 5:46 AM:
I use the code at the of this message to add a copyright text ( watermark ) on image printing.
I would like to have a text Opacity at 30%.
On print preview and normal view all is ok , but when I print the image the copyright text has the background and opacity at 100%. ( so it covers my
image ).

I've tried also with AlphaImageLoader (.copyImg class) but the result is the same.
So ... how can I print a image with a "watermark" one th background ?
Any ideas ?
Thanks in advance


Open your Graphics Editor.
Open your Graphic File.
Add the watermark.
Save the Graphic File.

Now, your graphic has a watermark on it.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices -

http://www.JavascriptToolbox.com/bestpractices/
Dec 13 '05 #3
Michele <mt****@texa.it> wrote:
Ok ... the problem is that I've to add the watermarks on the fly ,
dinamically , without modifing the original images, for
printing only.


This isn't something JavaScript can do for you. It's possible that
stylesheets may allow you to achieve your desired effect; check
comp.infosystems.www.authoring.stylesheets.

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
Dec 13 '05 #4
Michele said the following on 12/13/2005 7:40 AM:
Ok ... the problem is that I've to add the watermarks on the fly ,
dinamically , without modifing the original images, for
printing only.


Then have your server create watermarked images on the fly. Then, you
have no need for trying to manipulate images on the client with either
scripting or CSS (both of which can be disabled). Then, you problems are
solved.

Signatures can be informative.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Answer:It destroys the order of the conversation
Question: Why?
Answer: Top-Posting.
Question: Whats the most annoying thing on Usenet?
Dec 13 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Jody Gelowitz | last post by:
I am trying to find the definition of "Safe Printing" and cannot find out exactly what this entitles. The reason is that I am trying to print contents from a single textbox to no avail using the...
4
by: Suzanka | last post by:
Hello, I have an application written in C# on visual studio .NET. It is a web aplication. The application consists of many different forms, that users occassionaly want to print out for filing....
4
by: Arif | last post by:
I C# code prints very slow as compared to a third party barcode printing software. That software prints approximately 10 labels in 2 seconds while my C# code prints 10 labels in 5 to 6 seconds. And...
6
by: Michele | last post by:
I use the code at the of this message to add a copyright text ( watermark ) on image printing. I would like to have a text Opacity at 30%. On print preview and normal view all is ok , but when I...
6
by: Siv | last post by:
Hi, I am getting into printing with VB.NET 2005 and want to implement the usual capability that a user can select a selection of pages. I have a report that is generated by my application that if...
3
by: madumm | last post by:
Hi all; I want to add watermarks for PDF files. I have found a class called "PdfFileStamp" to do that. Inorder to do that have to import "com.aspose.pdf.kit.PdfFileStamp" for that how can i do...
8
by: Neo Geshel | last post by:
Greetings. BACKGROUND: My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are delivered as application/xhtml+xml for all non-MS web clients, and as text/xml for all MS web...
18
by: Brett | last post by:
I have an ASP.NET page that displays work orders in a GridView. In that GridView is a checkbox column. When the user clicks a "Print" button, I create a report, using the .NET Framework printing...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.