csXImage - ActiveX Image Edit and Twain Control

This is an ActiveX / OCX image control for the display, edit and manipulation of images. It can be used to add image processing functions to compiled or web based applications. Images can be acquired from Twain compliant scanner devices.

  • Add image functionality to your own applications.
  • Support for BMP, GIF, JPG, PNG, PSD, PCX, TIFF and WBMP image formats. Can export to PDF.
  • Import images from disk, binary data, clipboard, scanner or remote URL.
  • Image manipulation functions include resize, scale, crop, rotate and flip.
  • Scanned images can be enhanced using AutoCrop, Despeckle and Deskew methods
  • Image enhancement functions include brightness, contrast, sharpen, blur and greyscale.
  • Create compound images and watermarks by merging images.
  • Place text onto the image using any installed font with optional antialiasing. Support for Unicode characters.
  • Perform simple image editing drawing lines and shapes with optional colour fills.
  • Read and edit IPTC text (meta data) in JPEG, TIFF and PSD images.
  • Read and edit Exif attributes from JPEG and TIFF files.
  • Images can be exported to a remote server as an HTTP upload or by FTP.
  • Zoom and print functions and mouse events included.
  • Royalty free distribution of the OCX file.
  • Supplied as 32 bit and 64 bit.

This control can be used in Windows programming environments that support ActiveX, such as Visual Basic or Delphi as well as .NET and VBA driven applications such as Access. It can read and write a variety of file formats allowing for conversions to be made between them. Functions allow images to be manipulated, enhanced and edited. Images can be imported from TWAIN compliant scanners and webcams. The online manual provides a full listing of available properties and methods.

There are functions to save the image to file or copy the image to the Windows clipboard. The image can be exported in a binary format (a variant array), which can be used to place the image into a database field or stream the image to a web browser if used in a server-side application. An edited image can be posted to a web server as an HTTP upload, or by FTP.

The image editing functions include simple resize and scale methods for reducing image size or creating thumbnails. Images can be cropped, flipped and rotated. Colour depth can be adjusted, as can brightness, sharpness, contrast and HLS components (hue, lightness and saturation). Lines, shapes and text can be drawn. Images can be merged using optional transparency to create watermarks. Alpha transparency in PNG images is supported.

The installation is supplied as two OCX files, one is 32 bit and the other is 64 bit. The OCX file used will depend on the application calling the control. Some development environments, such as VB6, are 32 bit and so only the 32 bit control will be used. Visual Studio for .NET and Delphi can produce 32 bit or 64 bit applications. Internet Explorer is currently supplied as 32 bit. In scanning applications it may be preferable to use 32 bit for compatibility with existing scanner drivers.

Getting Started

Download the trial version of csXImage and run the installer to unpack the OCX file and register it on your computer. This will also unpack sample projects in Visual Basic 6, VB.NET, C# and a simple web page using the control in Javascript. After running the installer these sample projects will appear in your Start Menu, as well as the PDF version of the csXImage Instructions. For uninstall instructions - Click Here.

Note that the trial version writes a line of text on each image produced. This is the main limitation and the trial contains most of the other functions and properties of the full version. See the instructions for full details.

We have a number of examples, tips and troubleshooting for VB6, VB.NET, C# and client side Javascript.

Web Browser Applications

csXImage can be used in a browser as a client side control using Javascript. The Twain scanning and image uploading features are very useful in client side web based applications. We provide a digitally signed CAB file with the full version of csXImage. We have some additional explanation for use with ASP.NET, especially to describe the differences between client side and server side scripting.

Please note that the only browser which supports the use of ActiveX controls is Microsoft Internet Explorer, running on Windows.

csXImage has similar functionality to our popular ASP component, csImageFile. csXImage is licensed by the design seat with no restrictions on the OCX file. csImageFile is licensed by the number of installations of the DLL. There are also differences in syntax and names of properties and methods. Both components can be used in server side applications, and both components can be used in a visual environment although with csImageFile this is more difficult because it has no visual design interface. Follow this link for a full comparison of the two components.

Click Here for more on csImageFile.

We can recommend WebTwainX as an ActiveX control with a built in user interface allowing images to be scanned and uploaded from a web application. It is published by Ciansoft.

Quick Links

Download - Download the trial version of csXImage.

Instruction manual - HTML version.

Instruction manual - PDF version.

Buy - Price details and online purchase of csXImage.

Upgrade to the latest version.

Downloadable examples

Visual Basic (VB6), VB.NET and C#.

Load save and add effects. (VB6) / (VB.NET) / (C#).

Zooming an image. (VB6 and VB.NET) / (C#).

Meta Data - An example of editing IPTC text and EXIF data. (VB6 and VB.NET) / (C#).

Rubber Band - Drawing a line with "Rubber Banding". (VB6 and VB.NET) / (C#).

Selecting an area - Drawing a selection area with "Rubber Banding". (VB6 and VB.NET) / (C#).

Unicode - Adding text to an image in Unicode characters. (VB6 and VB.NET) / (C#).

TWAIN - Capturing an image from a TWAIN compliant scanner or camera. (VB6 and VB.NET) / (C#).

ADF - Scanning multiple images from a scanner with an Auto Document Feed. (VB6 and VB.NET) / (C#).

Multi-page TIFF - View edit or scan multipage TIFF images. (VB6 and VB.NET) / (C#).

Access Example

Access Demo - Storing images in an Access database and viewing as a report.

Javascript Examples

Client Side Example - Description of how to use csXImage in a web browser.

Twain Client Side Example - Scanning an image and uploading to a server.

Client Side Scanning with ADF - Scanning multiple images using an ADF scanner.

Resize and Upload Example - Opening a local image, resizing and uploading to a server.

Client Side Multi-page TIFFs - View edit or scan multipage TIFF images.

Useful Pages

Scanner Troubleshooting - Some tips on working around scanner related issues.

Client Side Use - Introduction to using csXImage in a web browser.

Client Side Troubleshooting - Some tips on resolving problems with Javascript applications.

VB 6 Examples - A list of code examples using Visual Basic 6.

VB.NET Examples - A list of code examples using Visual Basic for .NET.

C# Examples - A list of code examples using C#.

Javascript Examples - A list of Javascript examples.

© Chestysoft, 2022.


This site uses cookies for functionality, traffic analysis and for targeted advertising. Click the Accept button to accept our Cookie Policy. The Cookie Policy page offers configuration for a reduced set of cookies for this site.