Thanks Keisuke Miyako!

That’s exactly what I needed.

So I basically do this:
PICTURE LIBRARY LIST
loop through each picture and GET PICTURE FROM LIBRARY
use GET PICTURE FORMATS to detect if it is a PICT
if the picture is a PICT,
 CONVERT PICTURE to PNG
 TRANSFORM PICTURE to add transparency
 SET PICTURE TO LIBRARY to save it back


That’s pretty easy. Thanks again!



Sannyasin Siddhanathaswami

On May 28, 2017, 10:31 PM -1000, wrote:

I would recommended converting the source pictures inside the library, from 
PICT to PNG.
there is nothing wrong with using the picture library, you can consider 
resource files in new development.

so, take a 32-bit v16,
iterate all pictures in your picture library,
use GET PICTURE FORMATS to detect PICT,
CONVERT PICTURE to PNG,
(optionally) TRANSFORM PICTURE to add transparency,
then save back to the library using the same name/ID.
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to