When you use PB's Visual Designer and for example create an Image gadget and specify "D:\projects\mydemo\image.bmp" it creates this code:
Code: Select all
LoadImage(#Img_Window_1_0,"D:\projects\mydemo\image.bmp")
SIMPLE SOLUTION! - it would be great if there was simply an "Embed picture" checkbox option alongside gadgets that have images so that the generated code instead would be something like this:
Code: Select all
CatchImage(#Img_Window_1_0, ?ImageBegin, ?ImageEnd-?ImageBegin)
DataSection
ImageBegin:
IncludeBinary("D:\projects\mydemo\image.bmp")
ImageEnd:
EndDataSection
