My Englisch is very bad, but i Think you understand, wat I want.
I think it would be nice and it helps more to understand the Code.
Picture say more than Words....

Code: Select all
;{graphics;format:jpg;width:120;height:120;dataB64:VHlwZSAob3IgcGFz ... mUuLi5iZ2Z}
Code: Select all
;IncludeBinary "D:\Images\YourImage.png"
What the? That's awesome!RSBasic wrote:You can double click on "IncludeBinary" to open the image in the preview window of PureBasic.
Sadly, the files need to be located somewhere else. If the path changes, all images will fail. This is why I suggest to place it into the source directly using base64 encoding.RSBasic wrote:Alternative: You can write:Code: Select all
;IncludeBinary "D:\Images\YourImage.png"
Too badGPI wrote:There is only one Problem: Scintilla doesn't support images in the soure code.
Not if you use the DOS "subst" command to set up a virtual drive letter to point to the target folder.Kukulkan wrote:If the path changes, all images will fail.
Code: Select all
;IncludeBinary "Z:\Pic1.jpg"
The following works fine here (PB 5.31 on Windows 10), when the file "flowers.jpg" is in the same directory as the PB source file:Kukulkan wrote:Sadly, the files need to be located somewhere else. If the path changes, all images will fail.
Code: Select all
;IncludeBinary "flowers.jpg"
Code: Select all
;IncludeBinary "subfolder/flowers.jpg"
Thanks RSBasic.RSBasic wrote:Alternative: You can write:Code: Select all
;IncludeBinary "D:\Images\YourImage.png"