How to set white background transparent

Hi,

I have some VB.Net code that sets the background of a tif transparent as it is saved to gif.

 

Call

 

 

PhotoPaint11App.CorelScript.FilterGIF(0, 0, 1, 255, 0, 0, 0, 0)

 

 

Call PhotoPaint11App.CorelScript.FileSave(gWebFolderMain & gMVID & "-NakkeO.gif"

, PHOTOPAINT.cdrFilter.cdrGIF, 0)

This workd fine in PhotoPaint 10, but now with X5 it doesn't work any more.

I need help.

Best regards
Pål Eilertsen