Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
JDK 11 java.desktop.jmod - Desktop Module
JDK 11 java.desktop.jmod is the JMOD file for JDK 11 Desktop module.
JDK 11 Desktop module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\java.desktop.jmod.
JDK 11 Desktop module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Desktop module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\java.desktop.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ com/sun/imageio/plugins/tiff/TIFFCIELabColorConverter.java
/* * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.imageio.plugins.tiff; public class TIFFCIELabColorConverter extends TIFFColorConverter { // XYZ coordinate or reference white (CIE D65) private static final float Xn = 95.047f; private static final float Yn = 100.0f; private static final float Zn = 108.883f; private static final float THRESHOLD = (float)Math.pow(0.008856, 1.0/3.0); public TIFFCIELabColorConverter() {} private float clamp(float x) { if (x < 0.0f) { return 0.0f; } else if (x > 100.0f) { return 255.0f; } else { return x*(255.0f/100.0f); } } private float clamp2(float x) { if (x < 0.0f) { return 0.0f; } else if (x > 255.0f) { return 255.0f; } else { return x; } } public void fromRGB(float r, float g, float b, float[] result) { float X = 0.412453f*r + 0.357580f*g + 0.180423f*b; float Y = 0.212671f*r + 0.715160f*g + 0.072169f*b; float Z = 0.019334f*r + 0.119193f*g + 0.950227f*b; float YYn = Y/Yn; float XXn = X/Xn; float ZZn = Z/Zn; if (YYn < 0.008856f) { YYn = 7.787f*YYn + 16.0f/116.0f; } else { YYn = (float)Math.pow(YYn, 1.0/3.0); } if (XXn < 0.008856f) { XXn = 7.787f*XXn + 16.0f/116.0f; } else { XXn = (float)Math.pow(XXn, 1.0/3.0); } if (ZZn < 0.008856f) { ZZn = 7.787f*ZZn + 16.0f/116.0f; } else { ZZn = (float)Math.pow(ZZn, 1.0/3.0); } float LStar = 116.0f*YYn - 16.0f; float aStar = 500.0f*(XXn - YYn); float bStar = 200.0f*(YYn - ZZn); LStar *= 255.0f/100.0f; if (aStar < 0.0f) { aStar += 256.0f; } if (bStar < 0.0f) { bStar += 256.0f; } result[0] = clamp2(LStar); result[1] = clamp2(aStar); result[2] = clamp2(bStar); } public void toRGB(float x0, float x1, float x2, float[] rgb) { float LStar = x0*100.0f/255.0f; float aStar = (x1 > 128.0f) ? (x1 - 256.0f) : x1; float bStar = (x2 > 128.0f) ? (x2 - 256.0f) : x2; float YYn; // Y/Yn float fY; // 'F' value for Y if (LStar < 8.0f) { YYn = LStar/903.3f; fY = 7.787f*YYn + 16.0f/116.0f; } else { float YYn_cubeRoot = (LStar + 16.0f)/116.0f; YYn = YYn_cubeRoot*YYn_cubeRoot*YYn_cubeRoot; fY = (float)Math.pow(YYn, 1.0/3.0); } float Y = YYn*Yn; float fX = fY + (aStar/500.0f); float X; if (fX <= THRESHOLD) { X = Xn*(fX - 16.0f/116.0f)/7.787f; } else { X = Xn*fX*fX*fX; } float fZ = fY - bStar/200.0f; float Z; if (fZ <= THRESHOLD) { Z = Zn*(fZ - 16.0f/116.0f)/7.787f; } else { Z = Zn*fZ*fZ*fZ; } float R = 3.240479f*X - 1.537150f*Y - 0.498535f*Z; float G = -0.969256f*X + 1.875992f*Y + 0.041556f*Z; float B = 0.055648f*X - 0.204043f*Y + 1.057311f*Z; rgb[0] = clamp(R); rgb[1] = clamp(G); rgb[2] = clamp(B); } }
⏎ com/sun/imageio/plugins/tiff/TIFFCIELabColorConverter.java
Or download all of them as a single archive file:
File name: java.desktop-11.0.1-src.zip File size: 7974380 bytes Release date: 2018-11-04 Download
⇒ JDK 11 java.instrument.jmod - Instrument Module
2022-08-06, ≈319🔥, 5💬
Popular Posts:
Apache Commons Codec library provides implementations of common encoders and decoders such as Base64...
JDK 11 jdk.jdi.jmod is the JMOD file for JDK 11 JDI (Java Debug Interface) tool. JDK 11 JDI tool com...
JSP(tm) Standard Tag Library 1.1 implementation - Jakarta Taglibs hosts the Standard Taglib 1.1, an ...
JDK 11 jdk.hotspot.agent.jmod is the JMOD file for JDK 11 Hotspot Agent module. JDK 11 Hotspot Agent...
How to download and install ojdbc11.jar for Oracle 21c? ojdbc11.jar for Oracle 21c is a Java JDBC Dr...