float[] colorLab = CIELab.convertToFloatLab(DicomMediaUtils.getIntAyrrayFromDicomElement(glm, Tag.GraphicLayerRecommendedDisplayCIELabValue, null)); int[] colorRgb = DicomMediaUtils.getIntAyrrayFromDicomElement(glm, Float thickness = DicomMediaUtils.getFloatFromDicomElement(style, Tag.LineThickness, 1.0f); if (style != null) { float[] lab = CIELab.convertToFloatLab(style.getInts(Tag.PatternOnColorCIELabValue)); if (lab != null) { rgb = PresentationStateReader.getRGBColor(255, lab, (int[]) null);
public static void setShutterColor(Tagable tagable, Attributes attributes) { Integer psVal = (Integer) TagD.get(Tag.ShutterPresentationValue).getValue(attributes); tagable.setTagNoNull(TagW.ShutterPSValue, TagD.get(Tag.ShutterPresentationValue).getValue(attributes)); float[] rgb = CIELab.convertToFloatLab((int[]) TagD.get(Tag.ShutterPresentationColorCIELabValue).getValue(attributes)); Color color = rgb == null ? null : PresentationStateReader.getRGBColor(psVal == null ? 0 : psVal, rgb, (int[]) null); tagable.setTagNoNull(TagW.ShutterRGBColor, color); }
Boolean dashed = style == null ? Boolean.FALSE : "DASHED".equalsIgnoreCase(style.getString(Tag.LinePattern)); //$NON-NLS-1$ if (style != null) { float[] rgb = CIELab.convertToFloatLab(style.getInts(Tag.PatternOnColorCIELabValue)); if (rgb != null) { color = PresentationStateReader.getRGBColor(255, rgb, (int[]) null);
Boolean dashed = style == null ? Boolean.FALSE : "DASHED".equalsIgnoreCase(style.getString(Tag.LinePattern)); //$NON-NLS-1$ if (style != null) { float[] rgb = CIELab.convertToFloatLab(style.getInts(Tag.PatternOnColorCIELabValue)); if (rgb != null) { color = PresentationStateReader.getRGBColor(255, rgb, (int[]) null);