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

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