Home
Products
Forums
Help
Publish Article
ImagOMatix

What is ImagOMatix?

ImagoMatix is a component for use on your ASP pages. It is used for image processing needs of your application. In current version the components has very limited features. But as the development of this component goes on, there will be more and more features added to it. And if you have any request, please feel free to drop us a line. We will try to incorporate that functionlity in this component.

What Functionlaity Is Supported In Current Version?

  • Create thumbnail images on the fly from an existing file.
  • Determine the size of any image.

Where Can I User It?

The use of this component are not just limited to ASP applications. Since it is a COM component, you can use it for any application that is capable of creating COM server objects and calling methos on it. If your application involves uploading image files from clients, then you can determine the size of images at run time and depending on thoses you can accept or reject the uploaded file. Other use can be to create thumbnail image from a huge image and store that for displaying.

How do I use it?

The component is very easy to use. In your ASP page, you will create it as any other COM component and invoke the properties or methods on it.

Example1 - Determining Size Of Image

<%@Language=javascript%>
<%
	Response.Buffer = true;
	var obImgEngine = null;
	var obImage = null;
	try
	{
		// Create image charting engine.
		obImgEngine = Server.CreateObject("SOFTOMATIX.ChartEngine");
		var strImgFile = Server.MapPath("CD001.jpg");
		obImage = obImgEngine.GetImageSize(strImgFile);
		Response.Write("Width: " + obImage.Width);
		Response.Write("<br>");
		Response.Write("Height: " + obImage.Height);
	}
	catch  (ex)
	{
		Response.Write(ex.description);
	}
%>						
						

Example2 - Creating Thumbnail Image

<%@Language=javascript%>
<%
	Response.Buffer = true;
	var obImgEngine = null;
	var obImage = null;
	try
	{
		obImgEngine = Server.CreateObject("SOFTOMATIX.ChartEngine");
		var strImgFile = Server.MapPath("CD001.jpg");
		var strDestFile = Server.MapPath("uploadedfiles/CD001_th.jpg");
		obImgEngine.CreateThumbnail(strImgFile, strDestFile, 30, 30, 1);
	}
	catch  (ex)
	{
		Response.Write(ex.description);
	}
%>						
						

What methods to call?

  • GetImageSize
    • bstrSourcercImageFile - Source image file path
    • ImageObject is returned. It supports two properties, Width and Height. Use these properties to get image size information.
  • CreateThumbnail
    • SourceFile - Used to specify the path for source image
    • DestFile = Used to specify the path for thumnail image file.
    • Width - Used to specify width of thumbnail
    • Height - Used to specify height of thumbnail
    • Format - Used to specify image format for destination thumbnail file. Currently the component supports the following formats.
      • 0 - bmp
      • 1 - jpeg
      • 2 - gif
      • 3 - png
      • 4 - tiff

How to install it?

  • Download PSCharts.zip from the site and unzip to extract PSCharts.dll file.
  • Copy the DLL in folder where you want to install it.
  • Using regsvr32 utility, register the component on your machine. Make sure that you have administrative previleges on the machine.
  • Make sure that you have GdiPlus installed on your machine. If you don't have it, you can get the library from Microsoft.
Go Freelance
Home     About us     Contact us    Copyright    Privacy Policy    Return Policy    Advertisers
Copyright © Netomatix