02-13-2006, 01:07 PM
GFL SDK is a library to load/save easily graphics formats.
It has the features :
Import about 100 graphic file formats
Export about 40 graphic file formats
Support of 10/12/16bits per component
Color mode convert
Lut transforms (brightness, contrast, ...)
Filters (blur, average, ...)
Tools (resize, de-interlace, ...)
And many other things...
GFL SDK is provided as FREEWARE for private non-commercial or educational use (including non-profit organization).
GFLAx is the ActiveX version of GFL SDK.
Home:
http://www.xnview.com/en/gfl.html
Download GFLAx (ActiveX/ASP component):
http://download.xnview.com/GflAxSetup.exe
Examples
Change bitmap file color depth
Create gif image with text
It has the features :
Import about 100 graphic file formats
Export about 40 graphic file formats
Support of 10/12/16bits per component
Color mode convert
Lut transforms (brightness, contrast, ...)
Filters (blur, average, ...)
Tools (resize, de-interlace, ...)
And many other things...
GFL SDK is provided as FREEWARE for private non-commercial or educational use (including non-profit organization).
GFLAx is the ActiveX version of GFL SDK.
Home:
http://www.xnview.com/en/gfl.html
Download GFLAx (ActiveX/ASP component):
http://download.xnview.com/GflAxSetup.exe
Examples
Change bitmap file color depth
typelib GflAx {059321F1-207A-47A7-93A1-29CDF876FDD3} 1.0
GflAx.GflAx g._create
;g.EnableLZW=TRUE ;;enable for gif
g.LoadBitmap(_s.expandpath("$my pictures$\bird.bmp"))
g.ChangeColorDepth(GflAx.AX_To16Colors 0 0)
g.SaveBitmap(_s.expandpath("$my pictures$\bird2.bmp"))
Create gif image with text
str s="Text"
typelib GflAx {059321F1-207A-47A7-93A1-29CDF876FDD3} 1.0
GflAx.GflAx g._create
g.FontSize=20
int width=g.GetTextWidth(s)+8 ;;image width will depend on text
g.NewBitmap(width 24 0xffffff)
g.TextOut(s 4 2 0xff) ;;red
g.SaveFormat=2 ;;gif
g.EnableLZW=TRUE ;;needed for gif
g.SaveBitmap(_s.expandpath("$my pictures$\text.gif"))