Demo ASP scripts to use Active Image component

Sample 1

Graphic counter, direct output to Browser data stream

Shows the usage of the following methods: CreateImage, SetColor, Fill, DrawText, SetImageType, SetJpegQuality, WriteToVariable, DestroyImage

Sample 2

Saving/Reading image to/from script variable

Shows the usage of the following methods: CreateImage, SetColor, Fill, DrawText, SetImageType, SetJpegQuality, WriteToVariable, ReadFromVariable, WriteToFile, DestroyImage

Sample 3

Drawing Polygons

Shows the usage of the following methods: CreateImage, SetColor, Fill, DrawRectangle, SetLineThickness, SetFont, DrawTextAngle , DrawPolygon, DrawFilledPolygon, SetImageType, SetJpegQuality, WriteToFile, DestroyImage

Sample 4

Filling image with a custom color, getting image information, drawing lines with a selected thickness

Shows the usage of the following methods: CreateImage, SetColor, Fill, SetLineThickness, DrawLine, GetPixelRed, GetPixelGreen, GetPixelBlue, DrawText , SetImageType, SetJpegQuality, WriteToFile, DestroyImage

Sample 5

Reading image from database

Shows the usage of the following methods: ReadFromDatabase , SetImageType, SetJpegQuality, WriteToFile, DestroyImage

Sample 6

Filled rectangles, color manipulation

Shows the usage of the following methods: CreateImage, SetColor, Fill, DrawFilledRectangle, GetPixelRed, GetPixelGreen, GetPixelBlue, DrawText , SetImageType, SetJpegQuality, WriteToFile, DestroyImage

Sample 7

Using True Type Fonts

Shows the usage of the following methods: CreateObject, SetFontPathTTF, SetFontSizeTTF, SetFontTTF, CreateImage, SetColor, DrawTextTTF, SetFontSizeTTF, DrawTextAngleTTF, WriteToFile

Sample 8

Filled rectangles, color manipulation, transparent image

Shows the usage of the following methods: CreateImage, SetColor, Fill, DrawFilledRectangle, GetPixelRed, GetPixelGreen, GetPixelBlue, DrawText , SetImageType, SetJpegQuality, WriteToFile, DestroyImage, SetSaveAlpha, SetAlphaBlending,SetFontTTF,SetFontPathTTFAuto,SetAlphaColor,

Sample 9

Image information, transparent image

Shows the usage of the following methods: CreateImagePalette, SetColor, Fill, DrawFilledRectangle, GetColorRed, GetColorGreen, GetColorBlue, GetColorAlpha, DrawText ,   WriteToFile, DestroyImage, SetSaveAlpha, SetAlphaBlending, SetAlphaColor, SetTransparent, GetTransparent, SetColorByIndex, GetColorTotal

Sample 10

Read, resize and copy, save images

Shows the usage of the following methods: CreateObject, SetImageType, ReadFromFile, GetHeight, GetWidth, CopyImageResize, SetImage, DestroyImage, SetColor, DrawFilledRectangle, CopyImage, WriteToFile

Sample 11

Graphics for WAP

Shows the usage of the following methods: CreateImage, SetImageType, SetColor, Fill, DrawRectangle, DrawFilledRectangle, DrawText, ReadFromFile, WriteToFile, DestroyImage, SetJpegQuality, WriteToVariable, GetWidth, GetHeight, SetImage, CopyImageResize, ConvertToMonochromeAuto

If you have any questions or bug reports, write to active.image@tonec.com for technical support.