PhotoshopApplication = createOLEObject "Photoshop.Application"
PhotoshopApplication.Load "d:\\test\\aaa.tga"
PhotoshopApplication.ActiveDocument.Selection.SelectAll()
PhotoshopApplication.ActiveDocument.Selection.Copy()
PhotoshopApplication.ActiveDocument.Paste()
PhotoshopApplication.Quit()
ReleaseOLEObject PhotoshopApplication
PhotoshopApplication = undefined
GC() --释放内存
时间: 2024-10-02 09:33:57