Hi All,
We are migrating VBScripts to Python scripts.
We hosts ActiveX controls in our applications, and interact with hosted ActiveX controls via executing VBScripts within VBScript ActiveX scripting engine at runtime. We are using pywin32 package to load this as ActiveX scripting engine and execute the python scripts to at runtime to work with ActiveX controls.
Most of the migration is going smooth, and got stuck with - LoadPicture() method that returns IPictureDisp object type.
VBScript Code snippet to convert into Python:
ImageList1.ListImages.Add 1,,LoadPicture("test.bmp")
The VBScript LoadPicture function is used to return a picture object that is loaded from a file, the LoadPicture syntax is:
LoadPicture (filename)
Didn't find any alternative for LoadPicture() method in Python, or a way to convert Image (Image.open() - Python PIL package) object type to IPictureDisp type.
I've tried multiple Image Processing libraries in Python but no luck.
Thank you for your help in advance.
We are migrating VBScripts to Python scripts.
We hosts ActiveX controls in our applications, and interact with hosted ActiveX controls via executing VBScripts within VBScript ActiveX scripting engine at runtime. We are using pywin32 package to load this as ActiveX scripting engine and execute the python scripts to at runtime to work with ActiveX controls.
Most of the migration is going smooth, and got stuck with - LoadPicture() method that returns IPictureDisp object type.
VBScript Code snippet to convert into Python:
ImageList1.ListImages.Add 1,,LoadPicture("test.bmp")
The VBScript LoadPicture function is used to return a picture object that is loaded from a file, the LoadPicture syntax is:
LoadPicture (filename)
Didn't find any alternative for LoadPicture() method in Python, or a way to convert Image (Image.open() - Python PIL package) object type to IPictureDisp type.
I've tried multiple Image Processing libraries in Python but no luck.
Thank you for your help in advance.