transparency support with png

0 votes
asked Jan 6, 2013 in Wanted features by anonymous
That would be great :)

Thanks

1 Answer

+1 vote
answered Jan 6, 2013 by plantuml (295,000 points)

Hello,

Could you be more specific about your need (by giving an example) ?

Today, the only place where you can use transparent color is in the background. For example:

@startuml
skinparam backgroundcolor transparent
State s1 #red|yellow
note right #black-yellow
  this is a note
end note
@enduml

 

commented Jan 10, 2013 by anonymous
Sorry for the late answer..
If I export a class diagram with transparent backgroundcolor it only works with svg, not png.
With use case diagrams it turns rectangles background black.
commented Jan 12, 2013 by plantuml (295,000 points)
Hello,
I guess that you are talking about the Eclipse plugin, aren't you ?
commented Jan 14, 2013 by anonymous
edited Jan 14, 2013
No, i'm using the Idea plugin, but i also tried with the command line, without success.

Note that I can get transparent background but only with SVG format.
commented Jan 14, 2013 by anonymous
Try by yourself:

@startuml

skinparam backgroundcolor transparent

A <|-- B
A <|-- C

B <|-- D

@enduml
commented Jan 14, 2013 by anonymous
Oh and by the way:

 plantuml -version
PlantUML version 7948 (Wed Jan 02 18:43:23 CET 2013)
OpenJDK Runtime Environment
OpenJDK 64-Bit Server VM
1.7.0_09-b30
Linux
commented Jan 14, 2013 by anonymous
I tried your example with State:
plantuml state-ex.puml
And it generates a PNG file without transparent background.
commented Jan 14, 2013 by plantuml (295,000 points)
Sorry, you are right, this is only working in sequence diagram:
@startuml
skinparam backgroundcolor transparent
a -> b : hello
@enduml
This will be corrected in next version.
commented Jan 14, 2013 by anonymous
Ok, thank you
commented Jan 17, 2013 by plantuml (295,000 points)
This is corrected in version 7950
commented Jan 17, 2013 by anonymous
Great! Plantuml rocks :)
...