Book a Demo

Author Topic: Display image on top right corner of shape  (Read 3897 times)

harvinder

  • EA User
  • **
  • Posts: 30
  • Karma: +0/-0
    • View Profile
Display image on top right corner of shape
« on: May 03, 2011, 12:01:01 pm »
I have seen icons placed on top right corners (stereotype element in UML Profile).

I made one attempt by adding image to the shape script but it has two issues
[1] image get enlarged when I enlarge the shape. I would like it to be constant size.
[2] I cannot place a image with transparent areas. I tried png, but it looks like a black rectangle.

thanks
harvinder

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Display image on top right corner of shape
« Reply #1 on: May 03, 2011, 10:50:49 pm »
I made a few feature requests related to this issue a while back. No response from Sparx on this matter.

Ideally, it would be nice to allow decorations of this type to work the same as in the 'normal' rendering. This would include the ability to assign multiple such decorations and have them line up nicely.

This might be accomplished by extending the current decoration process. It could also be added as an additional keyword.

But so far, nothing. Sigh...
No, you can't have it!

stao

  • EA User
  • **
  • Posts: 137
  • Karma: +0/-0
    • View Profile
Re: Display image on top right corner of shape
« Reply #2 on: May 04, 2011, 09:35:22 am »
I would try to add the image as a decoration. this should (hopefully) fix the enlargement of the image.
Code: [Select]
shape main
{
      
.....      
}

 
decoration runstate
{                  
      orientation = "NE";                   
      image(....);                    
}

i did not try it but i guess it can work like that
« Last Edit: May 04, 2011, 09:35:44 am by stao »