The web editor When you provide an interface to let users manage the content of their web applications you need to provide them the tools to input data such as texts (HTML formatted or not) and images. While HTML texts can be easily handled by our editor called Html TextBox, we are happy to provide a similar solution for images. Users can upload, modify then store images with our web control. Our editor is a component that has built-in image upload, real time image processing and image viewing. It's safer and easier People that input content on a website are generally not web designers, so most don't have that design & technical fibre in them. Our component will take care of the upload, will pre-process the image if needed (first resize, etc) and will provide easy to use tools to crop, flip, rotate, zoom, add text and resize the uploaded image. No technical or design background is needed to start using our component. High ROI (Return On Investment) Compare the price of our component with any of the popular windows desktop applications to work with images, per user... Not to mention you need to learn how to use them. No software installation A browser is all you need to start working with your images. No Java Applet or ActiveX components to install. Check our demos: Web Editor Full Featured Upload Post Processing Upload and Edit The processor The main objective of our control is to simplify your task while dealing with images. The .NET Framework provides easy access to GDI+ but it can be really tricky to play with it. Most developers don't have time (or money) to invest in that kind of stuff. The control can process your images in three ways. The first one and the easiest one is using the static methods of the class QuickProcess. You can process an image in one line of code! For example if you want to rotate an image, you call the ResizeImage method just like this :
ActiveUp.WebControls.QuickProcess.ResizeImage("c:\\myimage.jpg", 150, 150, true, false );
If you already deal with the .NET Framework Image object, you can process it using a single line of code too and using the same class:
myImageObject = ActiveUp.WebControls.QuickProcess.ResizeImage(myImageObject , 150, 150, true, false);
The third method is the advanced one. If you need to do more than one operation on the same image, you should consider the non static class called ImageJob and create an instance of it:
ActiveUp.WebControls.ImageJob job = new ActiveUp.WebControls.ImageJob("c:\\myimage.jpg"); job.ResizeImage(150, 150, true, false ); job.Save(); job.Dispose(); Check our demo: Processing Features The web handler The handler allows you to create images on the fly based on parameters you pass in the query string. To use the handler, you need to create an aspx file (specify the filename of your choice) and enter the following text :
<%@ Page language="c#" AutoEventWireup= "false" Inherits="ActiveUp.WebControls.ImageHandler" %>
Ensure that the Active.WebControls DLL file is in your bin directory.
To display an image that is processed by the handler, you need to use the following code. We have assumed you've named your handler file GetImage.aspx.
<img src="GetImage.aspx?file=yourpic.jpg" border= "0">
In the case above the picture is just loaded from the disk and output as a stream to the browser. You can now add "commands" to process the picture on the fly. The example below will apply a 90° rotation clockwise:
<img src="GetImage.aspx?file=yourpic.jpg&rotate=90" border= "0">
It is possible to apply several commands at the same time. They will be processed by order. Please note that we separate command parameters using the ; char.
<img src="GetImage.aspx?file=yourpic.jpg&rotate=90&resize=150;150;true;true" border="0">
It is also possible to apply the same command several times. Simply add a suffix to the command name:
<img src="GetImage.aspx?file=yourpic.jpg&rotate=90&resize=150;150;true;true&rotate2=270" border="0"> Check our demo: The Web Handler |