cr
This commit is contained in:
parent
e969f79a20
commit
1e5b9293be
@ -63,9 +63,7 @@ public class Converter {
|
|||||||
public static Color convertColor(ColorSpace colorSpace, ColorPt colorPt) {
|
public static Color convertColor(ColorSpace colorSpace, ColorPt colorPt) {
|
||||||
|
|
||||||
try (ColorPt rgbColor = colorSpace.convert2RGB(colorPt)) {
|
try (ColorPt rgbColor = colorSpace.convert2RGB(colorPt)) {
|
||||||
Color color = new Color((float) rgbColor.get(0), (float) rgbColor.get(1), (float) rgbColor.get(2));
|
return new Color((float) rgbColor.get(0), (float) rgbColor.get(1), (float) rgbColor.get(2));
|
||||||
rgbColor.destroy();
|
|
||||||
return color;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user