Bringing Internet Technology Innovations to Market since 1991
  News Products Outsourcing About Us Contact Us
descriptiondescription downloaddownload
  Tonec Homepage
ProductsT1C FreeImagemanual


If you want to build T1CFreeImage ActiveX component yourself, you will need to compile libraries (gd, libpng, zlib) first and then compile T1CfreeImage source files. To compile the libraries you need to create three subdirectories (gd, libpng, zlib) in your project home directory tree.

You can compile the libraries following the instructions included along with source code in their original distribution files. You can also take the project frame from T1CfreeImage distribution file, simply unzip and move libraries source code to created directories, and build the T1CFreeImage project. Since the projects have dependencies, all libraries should be compiled automatically and in the result you will get the ATL component in a single .dll file.

To build the component in MS VC 6.0 ++, you need to :

Here is the sample (t1c.vbs) that shows the usage of free ActiveX component on your ASP page. You can also use the component from VBS file, VBA for Access, Words and any other applications that support ActiveX (ATL) components.

Dim im
Set im = CreateObject("T1CFreeImage.Images.1")
im.CreateImage 100,100
im.SetColor 255,0,0
im.DrawLine 10,10,30,30
im.SetColor 0,0,255
im.DrawText 10,40,"T1CFreeImage"
im.SaveToFile "C:\test.png"
Set im = Nothing

Figure 1. Test.png

  TonecPrivacy Policy
  1999-2005. Tonec, Inc. All rights reserved.