Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QB64 Phoenix Edition v3.6.0 Released!
#11
(02-20-2023, 05:07 PM)TerryRitchie Wrote:
(02-20-2023, 06:07 AM)DSMan195276 Wrote:
(02-20-2023, 05:47 AM)TerryRitchie Wrote: When you get some time please code a quick example on how to use the new _LOADIMAGE argument. Very curious. Thank you for keeping the changes/fixes coming.

Sorry! I should have linked to the Wiki, it includes more information and has an example at the end: https://qb64phoenix.com/qb64wiki/index.php/LOADIMAGE

In my view this feature is very useful when paired with the HTTP support from v3.5.0, you can download an image file into a String and then pass that String directly to `_LOADIMAGE()` to open it. That lets you avoid having to write the image to a file first.

Ah, ok, I see. One could embed an entire sprite sheet within the code using this technique and then parse the individual sprites without ever having to access a drive.

Yes. And Terry I borrowed one of your example code for Example 3.  Smile
So, now you can embed all sorts of images and sounds that QB64-PE supports and load them directly from memory without having to touch any kind of storage.
Reply


Messages In This Thread
RE: QB64 Phoenix Edition v3.6.0 Released! - by a740g - 02-20-2023, 05:21 PM



Users browsing this thread: 1 Guest(s)