ImageEditor - Insert Text

  • Reset Changes
  • Add Text
Zoom:100%Size:0x0pxPos.:(-,-)Last Action:None
Isolate this demo as a stand-alone application
  • About this demo
  • C#
  • VB

With the RadImageEditor the users can easily add text to their images at the desired position, styled with the color they have chosen and can make the text as large (or small) as they want. Once the built-in tool is activated a moveable text that reflects the current color and size of the text, appears on the image. The position can be adjusted by dragging the movable text, as well as by manually changing the Top-Left coordinates from the dialog.
The sample text, "Your Text Here..." is localizable and can be changed either by modifying the .RESX localization files (recommended) or by changing the RadImageEditor.Localization.Dialogs.AddText_SampleText property from the code-behind.

Note: Please take into consideration that the operation of inserting the text on the picture is performed on the server, and there might be differences between the preview shown and the actual result.

  • DefaultCS.aspx
  • DefaultCS.aspx.cs
<%@ Page Language="C#" Inherits="Telerik.Web.Examples.ImageEditor.AddText.DefaultCS"CodeFile="DefaultCS.aspx.cs"  %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
    <link href="../../common/styles.css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <div class="demo-container size-narrow">
        <telerik:RadImageEditor RenderMode="Lightweight" ID="RadImageEditor1" runat="server" ImageUrl="~/ImageEditor/images/addtext.jpg" Width="490" Height="360px">
            <Tools>
                <telerik:ImageEditorToolGroup>
                    <telerik:ImageEditorTool CommandName="Reset"></telerik:ImageEditorTool>
                    <telerik:ImageEditorTool CommandName="AddText"></telerik:ImageEditorTool>
                </telerik:ImageEditorToolGroup>
            </Tools>
        </telerik:RadImageEditor>
    </div>
    </form>
</body>
</html>

Find Assistance

Help Us Improve

Was this example helpful?