با سلام
در خط
bmp.Save(path, ImageFormat.Gif) 'save the gif at specified path and name

پیغام خطای
A generic error occurred in GDI+.
می دهد! مشکل از کجاست؟