When I save a GIF file using GflAx from VB, I get images that have a pixel aspect ratio of 0.250 instead of being square pixels. This is no problem in Windows browsers that ignore the ratio tag, but Photoshop recognizes it and open the images stretched in the horizontal direction.
By simply changing the pixel aspect ratio to square they display fine but it's annoying.
This is the code I am using:
Code: Select all
Set MyObjMap = New GflAx.GflAx
MyObjMap.NewBitmap Width, Height
... graphical commands ...
MyObjMap.SaveFormat = AX_GIF
MyObjMap.SaveBitmap ("c:\image.gif")
Is there some paremeter to control the aspect ratio? I didn't find anything in the help file.
Best regards.