What I did was cut each picture off the form to the pasteboard run the following code then paste it back into the form…
C_PICTURE($picture_c) GET PICTURE FROM PASTEBOARD($picture_c) // convert the picture CONVERT PICTURE($picture_c;".png") // make all white pixels transparent TRANSFORM PICTURE($picture_c;Transparency;0x00FFFFFF) SET PICTURE TO PASTEBOARD($picture_c) Perhaps the is a way to automate this but just did it manually. John > On Dec 28, 2018, at 9:32 AM, Alan Tilson via 4D_Tech <[email protected]> > wrote: > > Hello everyone, > > Is there code that can convert static PICT images to PNG, images not in a > library? > > Thanks, > Alan > > On Tue, Oct 23, 2018 at 4:17 PM Timothy Penner via 4D_Tech < > [email protected]> wrote: > >> Hi Setar, >> >> The v13 code to convert PICT -> PNG is here: >> http://kb.4d.com/assetid=76775 >> ^ There is no transparency option in that code. >> >> While the following code was published for v16: >> http://kb.4d.com/assetid=77963 >> ^ This one uses the transparency option. >> >> Regarding 4D Pack, it should exist in v16 but it is no longer available in >> newer versions: >> http://livedoc.4d.com/4Dv17/help/Title/en/page3607.html#3188011 >> { >> Over the course of different versions, the most useful 4D Pack routines >> were progressively integrated into 4D itself, while those that became >> obsolete were removed. Starting with 4D v16 R2, the 4D Pack plug-in is no >> longer provided in versions of 4D. Refer to the table below to find out the >> replacement solutions available (if any) for 4D Pack routines. >> } >> >> -Tim >> >> >> >> ********************************************************************** >> 4D Internet Users Group (4D iNUG) >> Archive: http://lists.4d.com/archives.html >> Options: https://lists.4d.com/mailman/options/4d_tech >> Unsub: mailto:[email protected] >> ********************************************************************** > ********************************************************************** > 4D Internet Users Group (4D iNUG) > Archive: http://lists.4d.com/archives.html > Options: https://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:[email protected] > ********************************************************************** ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

