Jump to content

Loading a image to memory for fast retrieval.


Recommended Posts

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

Link to comment
Share on other sites

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()
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...