[Solved] Visual Designer - embedded images with CatchImage
Posted: Tue Sep 08, 2015 6:52 am
The problem:
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:
Not very portable, and also in the case of program resources itd be nice to embed those
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:
Thankyou for considering 
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
