Tabnine Logo
CIELabColorSpace.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.xmlgraphics.java2d.color.CIELabColorSpace
constructor

Best Java code snippets using org.apache.xmlgraphics.java2d.color.CIELabColorSpace.<init> (Showing top 5 results out of 315)

origin: org.apache.xmlgraphics/xmlgraphics-commons

/**
 * Returns an instance of the CIE L*a*b* color space using the D50 white point.
 * @return an instance of the requested CIE L*a*b* color space
 */
public static synchronized CIELabColorSpace getCIELabColorSpaceD50() {
  if (cieLabD50 == null) {
    cieLabD50 = new CIELabColorSpace(CIELabColorSpace.getD50WhitePoint());
  }
  return cieLabD50;
}
origin: org.apache.xmlgraphics/xmlgraphics-commons

/**
 * Returns an instance of the CIE L*a*b* color space using the D65 white point.
 * @return an instance of the requested CIE L*a*b* color space
 */
public static synchronized CIELabColorSpace getCIELabColorSpaceD65() {
  if (cieLabD65 == null) {
    cieLabD65 = new CIELabColorSpace(CIELabColorSpace.getD65WhitePoint());
  }
  return cieLabD65;
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Returns a Color object that corresponds to the input Paint's
 * CIE Lab color value.
 *
 * @param e the element using the color
 * @param c the CIE Lab color definition
 * @param opacity the opacity
 * @param ctx the bridge context to use
 */
public static Color convertCIELabColor(Element e,
                  CIELabColor c,
                  float opacity,
                  BridgeContext ctx) {
  CIELabColorSpace cs = new CIELabColorSpace(c.getWhitePoint());
  float[] lab = c.getColorValues();
  Color specColor = cs.toColor(lab[0], lab[1], lab[2], opacity);
  return specColor;
}
origin: apache/batik

/**
 * Returns a Color object that corresponds to the input Paint's
 * CIE Lab color value.
 *
 * @param e the element using the color
 * @param c the CIE Lab color definition
 * @param opacity the opacity
 * @param ctx the bridge context to use
 */
public static Color convertCIELabColor(Element e,
                  CIELabColor c,
                  float opacity,
                  BridgeContext ctx) {
  CIELabColorSpace cs = new CIELabColorSpace(c.getWhitePoint());
  float[] lab = c.getColorValues();
  Color specColor = cs.toColor(lab[0], lab[1], lab[2], opacity);
  return specColor;
}
origin: org.apache.xmlgraphics/batik-bridge

/**
 * Returns a Color object that corresponds to the input Paint's
 * CIE Lab color value.
 *
 * @param e the element using the color
 * @param c the CIE Lab color definition
 * @param opacity the opacity
 * @param ctx the bridge context to use
 */
public static Color convertCIELabColor(Element e,
                  CIELabColor c,
                  float opacity,
                  BridgeContext ctx) {
  CIELabColorSpace cs = new CIELabColorSpace(c.getWhitePoint());
  float[] lab = c.getColorValues();
  Color specColor = cs.toColor(lab[0], lab[1], lab[2], opacity);
  return specColor;
}
org.apache.xmlgraphics.java2d.colorCIELabColorSpace<init>

Javadoc

Default constructor using the D65 white point.

Popular methods of CIELabColorSpace

  • toColor
    Creates a Color instance from color values usually used by the L*a*b* color space by scaling them to
  • getNumComponents
  • checkNumComponents
  • denormalize
  • fromCIEXYZ
  • getD50WhitePoint
    Returns the D50 white point.
  • getD65WhitePoint
    Returns the D65 white point.
  • getMaxValue
  • getMinValue
  • getNativeValueRange
  • getWhitePoint
    Returns the configured white point.
  • normalize
  • getWhitePoint,
  • normalize,
  • toCIEXYZ,
  • toCIEXYZNative,
  • toNativeComponents

Popular in Java

  • Reactive rest calls using spring rest template
  • onCreateOptionsMenu (Activity)
  • onRequestPermissionsResult (Fragment)
  • compareTo (BigDecimal)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now