Jump to content
Sign in to follow this  
Aceguy

Loading a image to memory for fast retrieval.

Recommended Posts

nobbe

maybe running the script then load bitmaps into 50 different bitmap handles could work

but externally "preload" bitmaps, then start "script" , then use preloaded bitmaps in script wont work

Share this post


Link to post
Share on other sites
nobbe

for one file see below, for 50 files you need an array $image[50]

_GDIPlus_Startup()
            Local $hImage
            $hImage = _GDIPlus_ImageLoadFromFile($path)
            
            _GDIPlus_ImageSaveToFile($hImage, @ScriptDir & "\temp.jpg")
            _GDIPlus_ImageDispose($hImage)
            _GDIPlus_Shutdown()

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.