Web Forms :: Add Text Over Image?
Feb 25, 2014How to WaterMark images ( Add Text over image )
View 1 RepliesHow to WaterMark images ( Add Text over image )
View 1 Replieshow to convert both text and image together into an image. To clarify my question I can say if I have a text editor where I can add both text,image,audio or video player, how canI convert the whole texteditor.text (it gives me html code) to an image and save it in a file.
View 3 RepliesI need to have a function created for a website(asp.net 2.0) that will allow the user to add text to an image and preview the image with the text on it.
View 2 RepliesI am showing images of members on my website. The images are already saved to file. I want to add some text to the image that is loaded in the image control. I don't want to save it to file, just display the change on that web page. I have seen code on how to do this but I do not see how to load it into an image control. Is this possible without saving it to file?
View 2 Replieshow can i convert text to image into asp.net pages an show it to user?
View 4 Replieshow to convert both text and image together into an image. To clarify my question I can say if I have a text editor where I can add both text,image,audio or video player, how can I convert the whole texteditor.text (it gives me html code) to an image and save it in a file. I will be highly pleased with your answer.
View 2 RepliesTried different ways but can't seem to do it right. Here is my code:
[Code]....
I have a Link Button in asp.net C# inside it i set an image...........when i click on image its works... But when i click on text it donts work , here is my code
[Code]....
i want asp button or imagebuttom with both background image and text above button.
i dont want to write text directly on image.
I am trying to combine text and an image on a LinkButton:
<asp:LinkButton ID="btnTest" runat="server" Text="Book">
<asp:Image ID="imgTest" runat="server" Height="8px" ImageUrl="~/DropDownArrow.png" Width="10px" />
</asp:LinkButton>
So far, this works.
However, if I change the text of the LinkButton in the code-behind, I lose the image.
btnTest.Text = "New book name"
I have tried removing the LinkButton's controls in the code-behind and recreating the image along with changing the text, but it still doesn't work. I get either the image or the text but not both.
btnTest.Controls.Clear()
Dim NewImage As New Image
With NewImage
.Height = Unit.Pixel(8)
.ImageUrl = "~/DropDownArrow.png"
.Width = Unit.Pixel(10)
End With
btnTest.Controls.Add(NewImage)
btnTest.Text = "New book name"
How can I change the text in the code-behind and still retain the image as well?
I have a treeview which will wrap text if the text is longer than a certain length. And for each nodes, I will show a image before the nodes text. So the question is when the text is wrap, the image will become in the middle line of text. I want to show the image just before the beginning of the first line. How can I do that the following is my code:css:
.secondMenu {
FONT-WEIGHT: normal; FONT-SIZE: 8pt; vertical-align: top
}
aspx:
<asp:TreeView ID="tvMenu" runat="server" AutoGenerateDataBindings="False"
ExpandDepth="2" NodeIndent="0"
NodeWrap = "true"
[code]...
am using ad rotator on my form. everything is working as planned. The image shows on the page.
Is it possible to have text as well to display over ( on top) of the image.
What are my options?
Currently I have button on a form and I need to make buttons image but maintain the click event functions that they have. For instance I have a button that says Update. Is there a way to add an image and put text in that image that says Update and maintain it's functionality. here is the code for the button:
[Code]....
I am showing images in "img" control and image name in "Label" control. My requirement is that if downloads the image then image name should be displayed on image. I am using the following code to write on the image and download. It is working fine but when I see the downloaded image. The image is corrupt. If i download the image without writing then the image is ok. What I should make changes in my following coding that the image will not corrupt after writing. The code is given below:
protected void Download_Click(object sender, ImageClickEventArgs e) {
string imgPath = hdnId.Value;
string[] a = imgPath.Split(new string[] { "demoProject/" }, StringSplitOptions.None);
string ik = a[1].Replace("%20", " ");
[Code] ....
i want image button to display both text and image like person Photo and his name.
text should be displayed over the image not down or side,,exactly within that image...
I have a Gridview that I build out of a Stored Procedure, in that Gridview I have a column with a Training Grade. I would like to have a Green Check Mark or a Red Check Mark (.gif) depending on the value of the grade. This is my code so far:
If e.Row.RowType = DataControlRowType.DataRow Then
I have a CommandField with an edit button. I want to be able to use an image for the edit, but text for the update and delete buttons. I can't figure out how to use both. Here is the CommandField:
[Code]....
Im trying to create a site that is multi language, in order to do this all copy, alt tag text and url links are stored in a db.
I then get all the info for that language and put it into a cached dataset. i then loop through the dataset on each page look for a tag in the html code and enter the copy, image alt tag or url.
<form id="form1" runat="server"> <div id="dvforimage"> <asp:TextBox ID="Txtimage" runat="server"></asp:TextBox> <b>This is text</b> <img id="imgforconvert" src="images.jpg" alt="img1" /> </div> <asp:Button ID="btnforimage" runat="server" Height="28px" Width="72px" Text="ok" onclick="btnforimage_Click" /> </form>
I want to convert all data present in div to jpeg.I mean image,text or whatever i write inside div tag.You have given me previous cod e which only convert text to image.
i want to create image.. if i want to create image with text..ex: name shivanand.. shoud image contens name shivanand itself with width 200px and height 200px
View 1 RepliesI 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 have image button in my page my image button has this text=Submit how can i hide it?
View 1 RepliesHere the form code -
<div class="textmid2">Adviser Photo :</div><div class="textright">Adviser Sign :</div></div>
<div class="Row"><div class="view_img1">
<asp:ImageMap ID="imgADphoto" runat="server" Width="140px" Height="150px">
</asp:ImageMap> </div>
<div class="view_sign1">
<asp:ImageMap ID="imgADsign" runat="server" Width="200px" Height="70px">
</asp:ImageMap> </div>
Code Behind for form code -
//code behind//
protected void txtCID_OnTextChanged(object sender, EventArgs e) {
SqlConnection cnn = new SqlConnection();
cnn.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings["constr"].ConnectionString;
cnn.Open();
[Code] .....
I am new to asp.net and im struck up in issue. Below is the scenario.
For the below image i need to have asp:labels inside on each of those boxes and display dynamic text inside it. How can i have achieve this ?? How can i place control inside those box?
or is there any other way to achieve this scenario in asp.net ??
inside td tag of table i placed this image but couldn't find out how to go further on this .
<td style="width: 65%; height: 100%; background-image: url('../../Images/boxes.PNG');
background-repeat: no-repeat"> </td>
I have a floating div on my page that contains an image. While everything looks ok in VisualStudio 2008, when I post the page to my server, the text in the image below the upper div shifts to the left of the div.
You can see the problem in the top paragraph at this url [URL]
<%@ Page Language="VB" MasterPageFile="~/MasterPageMain.master" AutoEventWireup="false" CodeFile="About.aspx.vb" Inherits="About" title="About Us" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<link href="StyleSheet.css" rel="stylesheet" type="text/css" />....