Hi all,

I have a question concerning the encoding of xyz float values that are
returned from ColorSpace.toCIEXYZ(). Am I correct in assuming that these
values are normalized representations of bytes holding 1.7 fixed point
values? (I came to this conclusion after looking at the xyz values of the
RGB colorspace whitepoint)

so to convert from java2d xyz to real xyz:

  ciexyz = SomeColorSpace.toCIEXYZ(...);
  realxyz[0] = (ciexyz[0]*255.0f) / 128.0f;
  realxyz[1] = (ciexyz[1]*255.0f) / 128.0f;
  realxyz[2] = (ciexyz[2]*255.0f) / 128.0f;

and back:

  ciexyz[0] = (realxyz[0]*128.0f) / 255.0f;
  ciexyz[1] = (realxyz[1]*128.0f) / 255.0f;
  ciexyz[2] = (realxyz[2]*128.0f) / 255.0f;

Also, does anyone know where I can find Sun's specifications of the various
colorspace encodings?

Thanks in advance,
Jean-Paul Mikkers


DISCLAIMER:
The information contained in this communication is confidential and may be
legally privileged. It is intended solely for the use of the individual or
entity to whom it is addressed and others authorised to receive it. If you
are not the intended recipient you are hereby notified that any disclosure,
copying, distribution or taking any action in reliance of the contents of
this information is strictly prohibited and may be unlawful. Stork is
neither liable for the proper and complete transmission of the information
contained in this communication nor for any delay in its receipt.

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to