Page 1 of 1

Will TRichView support \shp ?

Posted: Wed Mar 05, 2025 9:13 am
by TPerson
When creating a new rtf file in LibreOffice images are stored within \shp instead of \shppict. Those images are not visible when opening the file with TRichView. From what I can see there isn't that big difference. I've made a minimal rtf example of both cases containing just a small single colored square.

{\rtf1\ansi\deff3\adeflang1025
{\shp{\*\shpinst{\sp{\sn pib}{\sv {\pict\picscalex122\picscaley122\piccropl0\piccropr0\piccropt0\piccropb0\picw32\pich32\picwgoal480\pichgoal480\pngblip
89504e470d0a1a0a0000000d494844520000000a0000000a0802000000025058ea0000001449444154189563fccff09f013760c2233782a50173080212509422
440000000049454e44ae426082}}}}}}

versus

{\rtf1\ansi\deff3\adeflang1025
{\*\shppict{\pict\picscalex122\picscaley122\piccropl0\piccropr0\piccropt0\piccropb0\picw32\pich32\picwgoal480\pichgoal480\pngblip
89504e470d0a1a0a0000000d494844520000000a0000000a0802000000025058ea0000001449444154189563fccff09f013760c2233782a50173080212509422
440000000049454e44ae426082}}}

I can spend some time writing a small utility that converts \shp to \shppict. But I suppose \shp is used for other things too, and I might mess something up?

Re: Will TRichView support \shp ?

Posted: Wed Mar 05, 2025 9:34 am
by Sergey Tkachenko
Planned, but not for near future