before v11, the .RSR file adjacent to the structure file that shares the same name was automatically opened. starting from v11, the recommendation is to move any .RSR files to the Resources folder, and explicitly open it with Open resource file.
https://doc.4d.com/4Dv17/4D/17.2/Resources.201-4385996.en.html https://doc.4d.com/4Dv17/4D/17.2/Managing-the-Resources-folder.300-4416935.en.html https://doc.4d.com/4Dv17/4D/17.2/Description-of-4D-files.300-4403133.en.html .RSR files are stacked. so if there is a PICT resource in both a.RSR and b.RSR, GET PICTURE RESOURCE returns a different image depending on which file you opened last. if already see the correct image in design mode, you can simply call GET P. RESOURCE passing the ID. if not, you need to first Open R. file and then use the command. once the image is loaded in a picture variable, you can use TRANSFORM P. and WRITE P. FILE or CONVERT P. to map the white pixel to alpha and convert the format to .PNG. if the PICT has a MASK resource, you need to call GET RESOURCE, if the image is a cicn (colour icon), you need to call GET ICON RESOURCE. > 2019/07/28 17:37、JOHN BAUGHMAN via 4D_Tech <4d_tech@lists.4d.com>のメール: > > I have a picture button that is using a Resource File with an ID number. I > need to convert it to a png but do not have a clue where it is. I think it > should be in the Resource folder. Once I find it, I think I should move it > there?? ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **********************************************************************