xsharp.eu • Rp2 export embedded Images
Page 1 of 1

Rp2 export embedded Images

Posted: Mon Nov 18, 2019 9:49 am
by Theo
Hi!
Has someone a documentation for the lightlib image compent use in rp2 or is used to the function iPut?
I'm searching a way to export embedded images from rp2-files and I'm pretty sure it's simple with iPut and target LLI_DISK, but without documentation it's not that easy ;)
Any other suggestions are welcome.
Thank you
Theo

Rp2 export embedded Images

Posted: Mon Nov 18, 2019 12:06 pm
by robert
Theo,
We are no longer using IPut() for this.
The images are not encoded or anything. They are just stored as a stream of bytes.
If you look at Sample1.rpt from the RP2 samples then you'll find a text "122814BM" in there. The BM is the start of the Bitmap that is embedded. The 12814 is the length of the bitmap. Further in the file you will find 1646BM (image of 1646 bytes).

Robert