Author Topic: Cannot get image decoration to render in ShapeScript  (Read 1848 times)

netizensmith

  • EA User
  • **
  • Posts: 22
  • Karma: +1/-0
    • View Profile
Cannot get image decoration to render in ShapeScript
« 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

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Cannot get image decoration to render in ShapeScript
« Reply #1 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