Web Forms :: Setting Image In The Textbox Like As Watermark?
Dec 3, 2010How we can set image in the textbox in place of text like as watermark textbox in asp.net.
How it can be possible...
How we can set image in the textbox in place of text like as watermark textbox in asp.net.
How it can be possible...
I need to add image as a watermark on an image instead of a text.
I have a small logo that i will place somewhere at the bottom right side of the image, it takes small place.
I need to implement this in C#.
Can I sample code or tutorials on how to get this done?
Refer link [URL] ....
I put text watermark to images but I want I create image watermark to photos like below ...
how I can do it?
how do i watermark image, example: when a user registers on the website before the user uploads his or her photo there is a default image and when the user brings mouse close to the image it will show "Update profile picture".
View 1 Replies[Code]....I am seeing an empty text box watermark css is not applying and the text type first name here is also not getting displayed insde the text box.
View 1 RepliesIs there any way in order to remove a watermark from an image? What has to be done is to lose the existing watermark as much as possible and place a new watermark text instead. As the existing watermark is placed diagonally, cutting the image in two equal parts (triangles), I am thinking of possibility to detect the diagonal and then determine the watermark text height (size / dimensions), and after that apply the Gaussian method of blurring (or anything similar) on the determined part. After it's edited, the image would be exposed to a code that would generate the new watermark.Is this possible to do, after all?
View 1 RepliesIn insert.aspx page I have file upload control that users can upload their image and in show.aspx page they can see their images that the uploaded.
I want when users upload their image automatically type BEHTOP.COM On the center of image
I want to save water marked image to database.i have done watermarking,but save the image it does not save to database.
Following are my code:
Bitmap original_image = new Bitmap(FileUpload1.FileContent);
string sWaterMark = "reshu";//String to be watermarked
int fontsize = ((original_image.Width * 2) / (sWaterMark.Length * 3));
int x = original_image.Width / 2;
int y = original_image.Height * 9 / 20;
[Code] ....
My textbox is
<asp:TextBox runat="server" ID="txtDate1" Width="120px" onclick="tryPlaceholder(this,'dd MMM yyyy')" onblur="tryPlaceholder(this,'dd MMM yyyy')" />
function tryPlaceholder(txtbox, placehold) {
if (txtbox.value.length == 0) {
txtbox.value = placehold.toString();
[Code] ....
Its run okay with javascript. but i want solution through server side for textbox withing placeholder control inside asp.net .....
I want to create a text which contain a water mark .....but the condition is when i click inside the tetxbox the watermark want to disapper
View 1 Repliesi want to mail water marked image to the user.but i can't do this. i will show my code...
to use this code,the image watermarking is done...buti can't attach this file to the mail.
Bitmap bmpUpload = new Bitmap(FileUpload1.PostedFile.InputStream, false);
Graphics graphicsObj = Graphics.FromImage(bmpUpload);
Brush brush = new SolidBrush(Color.Gray);
Point postionWaterMark = new Point((bmpUpload.Width / 25), (bmpUpload.Height / 35));
[CODE]..
I used below code for insert watermark to photo
[URL]
here it writes watremark text is straight line (horizental)
How I can rotate text of water mark?
I used to show the text using TextBoxWatermarkExtender.
The text is so big.
How to break the string in the text in the text box that is shown using TextBoxWatermarkExtender
i have a page where the image,logo,position and alpha details are shown in a gridview...and the page has a confirm button...once the user clicks on confirm button[then actual watermarking happens which gets stored in db] it navigates to another page where another gridview is present but it has an additional column [watermarked image] ...the only problem is that when i want to write code for watermarking in the watermark.aspx.cs page
View 3 RepliesI included a Textbox watermark in a webpage and uploaded it to my server. I can't see the watermark on the textbox hence I get an error ASP.NET Ajax client-side framework failed to load.
View 1 RepliesI want to ask how I can create a waterMark for a image runtime in other words I want to write some text at every Image I show in my site.
View 1 RepliesI need to create a database in SQL2005 on a webserver (manually (not in code)), have registered users upload an image to a webserver not overwriting if the filename already exists but to append if required Weekly, I wish to review the uploaded images in the uploaded folder, create a user & add the image(s) into the database programmatically for all users to be able to search / When the image(s) are in the database & are searched or shown (ex: profile shown with all those details/pics displayed but before displaying the pics on the form to watermark them. However, a profile could have 1 pick or it could have 20. I would like to have for example 4 pics being shown then the user to click next till the end of the recordset. Then do the same for another profile. Uploading the file is fine but not to append if exists then maybe I should have an upload date as the filename (haven't decided)
View 2 RepliesI'm looking to create a simple watermark on the fly for an image, taking one image (JPEG) and adding some text to it on the BOTTOM of the image in white, with a solid black background right across the bottom. haven't been able to find anything that does it on the bottom of the JPEG.
View 2 RepliesThere is an image for the surface, and a text is written on the image for 184 rows of date..
Thus, it is expected to see 184 different text written image files are generated with all the same background images. (The code is declared below...)
The problem is that the first text is written for all 184 different data.. I think I have to remove something in the loop. But what is that ??
[Code]....
I want to save an image with watermark as copyright symbol. How to achieve this..?
View 1 RepliesI have been trying to use ajax in my asp .net website developed in 3.5 sp1 2008! The problem is I can see tool kit controls in my tool box but i can not use the controls. like i was using the text box watermark effect but when i run the website the text-box does not show effect and there is no option in text box to add extender. there is only remove extender option. I have code:
<asp:ScriptManager ID="ScriptManager2" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
First name:
<asp:TextBox ID="TextBox1" CssClass="unwatermarked" Width="150" runat="server" />
<ajaxToolkit:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server"
TargetControlID="TextBox1"
WatermarkText="Type First Name Here"
WatermarkCssClass="watermarked" />
</ContentTemplate>
</asp:UpdatePanel>
I am trying to create a watermark image on the background , i am wondering what option can i use to call image file from my APP_Themes folder insteaed of my hard drive ) Currently i am using this but couldn't figure it out how to call from APP_Them folder of application rather than being specific.
System.Drawing.Image img = System.Drawing.Image.FromFile("c:\Logo_large.gif");
Total AJAX Newbie here. Using VS2008 and vb.net.
I'm trying the watermark extender out and I can't seem to get it to work?
Don't know if it might be version issues?
I've got two textboxes and 'n want them watermarked but when the page runs, there are nothing happening?
Here is my code:
[Code]....
How to add watermark to uploaded doc (pdf or image files).The workflow will be-User register at portal -> user upload some required document (like financial proof or some kind) -> When saving them to database -> a watermark (predefined by admin at backend in admin panel as - Logo or Text) will be added to those uploaded document on top and bottom or wherever possible on the uploaded document.
So in future when admin views the document uploaded by him in his account, it will be displayed with stamp or the watermark. It will prove that the document is uploaded to server by user or whatever. Now, this we have found way to do in jpg, but in case of pdf its quite tough..
I have a page that display like a print pre-view. It shows the watermark in the background. But when I print it, it doesn't include the watermark. I know in IE7 you can change your IE settings to make it print the water mark but in IE8 you can't do that. Is there another way to print my water mark out? Here's that part of the code:
[Code]....