Pictures imported into a project show up in the IDE (e.g. one can select a picture for an ImageViewer).
However, they do not seem to be included when one saves the project as a binary project.
Is there a solution to this?
Pictures imported into a project show up in the IDE (e.g. one can select a picture for an ImageViewer).
However, they do not seem to be included when one saves the project as a binary project.
Is there a solution to this?
What do you mean by ânot includedâ? When you add a picture to a project, it is not copied into the project, it creates a reference to the file on disk.
Can you give us more detail as to whatâs happening?
Are not part of the binary. People may think that the binary contains everything, but images are external.
Yep. Thatâs by design.
There is an option called âCollect Project ItemsâŠâ under Xojoâs File menu, but that will also copy plugins and will save to a new location. Maybe that will help you?
What this âCollect project itemsâ doesnât do is to copy all files you specify in the build settings under âCopyFilesââŠ
But I opened an issue a while ago for that (o;
The way I handle this is to base64 encode my images and save them as string constants. Then I load them into picture objects using Picture.FromData(DecodeBase64(Constant)). It also prevents the image files from being required in distribution too.
Christian,
Thatâs what I decided to do. Should have it put together shortly.