2021-05-2601:29 PM - last edited on 2021-09-1412:10 AM by Noemi Balogh
Hi dear all,
how can I get a new image in an existing gsm-object? I want change an image, that is used in the UI-script (it shows some kind of 'quick-start-guide'-graphics).
It is only linked by its index (?) :
ui_pict 1, 0, pageStartY
When I convert the gsm to xml, I get the "hex-code"-image-part in the xml - but how I can place a new one there? How I can generate the "image-code" of the new picture, so I can put it in the xml and reconvert it to gsm?
I believe the image can be embedded with the XML converter, but I have never used that so someone else will need to explain that if it can be done.
However, if you don't need the image embedded in the object, instead of the image index number, just use the image name (in quotes).
So long as that image is in your loaded library, it can be used in this command.
One of the forum moderators. Versions 6.5 to 25 Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10 Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 10
The Visual Studio Code GDL Extension (from AC 24), the GDL sublime extension for Sublime Text (from AC 24) or GDLnucleus (for Sublime Text from AC 19) all can handle the routines to integrate images more or less automatically.
- I managed it creating an object only containing the images -> I convert that gsm to xml - so I can grab the GDL_pict-code and the correct MIME settings - and the index is also created (and can be manipulated)... - than copying the grabbed cod behind the <picture-end tag> (previewpic) and setting the correct index to the "ui_pict - command".
Using the lp_xmlconverter on the command line is no stress for me - I often deal with it, as this is the only way to get ALL data of an lib-object (also GUID (!) and embedded elements)
for scripting and "bulk-processing" I use notepad++ - I like that swiss-army-knife - and I can do special operations and regex-replacements and so on..