Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: netizensmith on July 09, 2025, 11:11:40 pm

Title: Cannot get image decoration to render in ShapeScript
Post by: netizensmith on July 09, 2025, 11:11:40 pm
Hi,

I have a stereotype in a profile and I want to display a Green Tick decoration on it. I have this shape script:

Code: [Select]
decoration GreenTick
{
image("GreenTick",0,0,15,15);
}

I have a 16x16 PNG in the Image Manager and it is named "GreenTick".

The preview in the Shape Editor show nothing.

I believe I've followed the instructions correctly but is there something I've missed?

Thanks
Title: Re: Cannot get image decoration to render in ShapeScript
Post by: Geert Bellekens on August 11, 2025, 09:00:53 pm
If you don't give your decoration an orientation, EA won't know where to show it.
From the examples in the manual:

Code: [Select]
decoration mail
{
     orientation= "NE";
     image ("icon image", 0, 0, 100, 100);
     // "icon image" being the name of the 16x16 image which is loaded into the Image Manager
}

Geert