SourceForge Logo gdCOM

Functions in gdCOM (gd 2.0.1)

Un-Implemented gd Functions
gdCOM "Helper" Functions
Implemented Core gd Functions


**** Currently Un-Implemented gd Functions ****

gdImageCreateFromPngCtx
gdImageCreateFromPngSource
gdImageCreateFromGd
gdImageCreateFromGdCtx
gdImageCreateFromGd2
gdImageCreateFromGd2Ctx
gdImageCreateFromGd2Part
gdImageCreateFromGd2PartCtx
gdImageStringTTF
gdImagePngCtx
gdImagePngToSink
gdImageGd
gdImageGd2
gdImagePngPtr
gdImageGdPtr
gdImageGd2Ptr
gdNewFileCtx
gdNewDynamicCtx
gdNewSSCtx
gdDPExtractData

**** gdCOM "Helper" Functions ****

ImageStringHelper        
ImageCharUpHelper        
ImageCharHelper          
ImageStringUpHelper      
ImageCreateFromXbmHelper 
ImageCreateFromPngHelper 
ImageCreateFromWBMPHelper
ImageCreateFromJpegHelper
ImagePngHelper           
ImageJpegHelper          
ImageWBMPHelper          
ImagePngBinaryData          
ImageJpegBinaryData
ImageStringFTHelper          

[gd Font Functions]
gdInstance.ImageStringHelper(ImagePointer, 3, 5, 10, "Hello", White)

The "Magic" long value in paramter position #2 ( in this case = 3) is a hack
from my side to specify the type of inbuilt gd Font you want to use. They
translate as

    1 = gdFontGiant;
    2 = gdFontLarge;
    3 = gdFontMediumBold;
    4 = gdFontSmall;
    5 = gdFontTiny;

[True Type Font Functions]

This dll has the FreeType TrueType thing integrated, and one function call
exposed (from VB it would be like):

Call gdInstance.ImageStringFTHelper(ImagePointer, LLX, LLY, LRX, LRY, URX,
URY, ULX, ULY, White, "/winnt/fonts/pala.ttf", PointSize, Angle, 10, 50, "Hello")

where ImagePointer is the gd Image pointer from an ImageCreate call _or_
just 0 if you wish to try and predict the bounding box of the resulting text
string without drawing.

The gd library returns an array of the bounding box co-ordinates for the
string, but I have returned it as separate variables:

LLX = LowerLeft X,  LLY = LowerLeft Y
LRX = LowerRight X, LRY = LowerRight Y
URX = UpperRight X, URY = UpperRight Y
ULX = UpperLeft X,  ULY = UpperLeft Y

Font name is with "unix" style slashes and I dont think it allows drive
letters in there.. (Havent checked)

PointSize and Angle are double precision values (in VB) which allow
fractional values.

[Helpers]

gd    Name => ImagePng(ImagePointer, FileHandle), writes Png data to handle
gdCOM Name => ImagePngHelper(ImagePointer, FileName), creates file of given name and writes Png data

gd    Name => ImageCreateFromXbm(FileHandle), Creates Image from Handle
gdCOM Name => ImageCreateFromXbmHelper(FileName); opens file of given name and creates Image from data.

gd    Name => ImageCreateFromPng(FileHandle), Creates Image from Handle
gdCOM Name => ImageCreateFromPngHelper(FileName); opens file of given name and creates Image from data.

[New Functions]

gdCOM Name => ImagePngBinaryData(ImagePointer), Returns a complete binary data version of the PNG for direct display applications such as ASP scripts.
gdCOM Name => ImageJpegBinaryData(ImagePointer), Returns a complete binary data version of the JPEG for direct display applications such as ASP scripts.


**** Implemented Functions ****

ImageCreate              
ImageCreateTrueColor     
ImageDestroy             
ImageColorAllocate       
ImageColorAllocateAlpha  
ImageColorClosest        
ImageColorClosestAlpha   
ImageColorExact          
ImageColorExactAlpha     
ImageColorResolve        
ImageColorResolveAlpha   
ImageColorDeallocate     
ImageColorTransparent    
ImagePaletteCopy         
ImageTrueColorToPalette  
ImageBoundsSafe          
ImageInterlace           
AlphaBlend               
ImageAlphaBlending       
ImageSaveAlpha           
ImageCompare             
ImageCopy                
ImageCopyMerge           
ImageCopyMergeGray       
ImageCopyResized         
ImageCopyResampled       
ImageGetPixel            
ImageSetPixel            
ImageSetStyle            
ImageSetBrush            
ImageSetTile             
ImageSetThickness        
ImageLine                
ImageDashedLine          
ImageRectangle           
ImageFilledRectangle     
ImagePolygon             
ImageFilledPolygon       
ImageArc                 
ImageFilledArc           
ImageFillToBorder        
ImageFill                
ImageChar                
ImageCharUp              
ImageString              
ImageStringUp            
ImageString16            
ImageStringUp16          
ImageSX                  
ImageSY                  
ImageColorsTotal


This gdCOM page and hosting has been provided by SourceForge Logo .