Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add graphic object opacity of DICOM Presentation State #153

Closed
VitMosin opened this issue Oct 21, 2020 · 4 comments
Closed

Add graphic object opacity of DICOM Presentation State #153

VitMosin opened this issue Oct 21, 2020 · 4 comments

Comments

@VitMosin
Copy link

VitMosin commented Oct 21, 2020

Is your feature request related to a problem? Please describe.
I have "SQ graphic object sequence (0070, 0009)" with items. Items are closed polylines
Tag "CS graphic object (0070, 0024)" with value "Y" works properly as expected. Polyline is filled.
But there is sequence "SQ fill style sequence (0070, 0233)" too.
And if I add single item with tag to this sequence, f.ex. Patter On Opacity (https://dicom.innolitics.com/ciods/grayscale-softcopy-presentation-state/graphic-annotation/00700001/00700009/00700233/00700284), there are no changes in weasis.

Describe the solution you'd like
I'd like to see closed graphic objects filled with opacity (transparency).

Describe alternatives you've considered

Additional context
image
image

@nroduit
Copy link
Owner

nroduit commented Oct 22, 2020

It should be possible to add transparency without changing the graphic model.

@VitMosin
Copy link
Author

It should be possible to add transparency without changing the graphic model.

You mean this feature is already accessible?

@nroduit
Copy link
Owner

nroduit commented Oct 22, 2020

There are a few small changes to be made so that it is also possible to create graphics with a certain transparency by adding the alpha channel in the color of each graphic.
color = new Color((fillOpacity << 24) | (color.getRGB() & 0x00ffffff), true);

And for DICOM PR by converting the alpha part into the appropriated tag.

@nroduit nroduit changed the title Add graphic object opacity Add graphic object opacity of DICOM Presentation State Jan 23, 2021
@nroduit
Copy link
Owner

nroduit commented Jan 23, 2021

Handle PatternOnOpacity for line and fill style but as opacity of line and fill cannot display separately the fill style override the line style.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants