Author Topic: Using the embedded icon handles in programs  (Read 5552 times)

0 Members and 1 Guest are viewing this topic.

Offline George McGinn

  • Global Moderator
  • Forum Regular
  • Posts: 210
    • View Profile
    • Resume
Re: Using the embedded icon handles in programs
« Reply #15 on: March 20, 2021, 10:47:49 pm »
Dav,

Ah, maybe a systems project I can work on, if I have spare time...

I do have code in TechBASIC on the iPad that will read a binary file, byte-by-byte, or bit-by-bit, and can create a new image file by name.

I also remember Rbytes has some BASIC programs that embed data into image files.

I will look into how QB64 handles reading and writing binary streams. It seems (theoretically possible) that a utility can be created that reads an image file and create DATA statements, that your code can then write out a temporary image file to use like a resource file, and then all the image statements in QB64 should work fine. When your program is done, just delete the temporary image file.

It seems simple, but so was my debacle with loading and printing FONTS in my programs!!!! (It's what happens when my mind is on some other problem)

Up for a challenge?


Yeah I agree with that.  I hope I'm still here 10 years down the road...

Edit: speaking of resources, it would be great to see QB64 one day have adding resource files capability. Declare a resource file, like an image, and have it included in the EXE.

- Dav
____________________________________________________________________
George McGinn
Theoretical/Applied Computer Scientist
Member: IEEE, IEEE Computer Society
Technical Council on Software Engineering
IEEE Standards Association
American Association for the Advancement of Science (AAAS)

Offline NOVARSEG

  • Forum Resident
  • Posts: 509
    • View Profile
Re: Using the embedded icon handles in programs
« Reply #16 on: March 21, 2021, 03:48:04 am »
next
« Last Edit: March 22, 2021, 12:58:36 am by NOVARSEG »