|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.display.CieLabConversion
public class CieLabConversion
Use this class to convert colers from and to the device independent CIELab color space using the monitor settings.
CieLabConversion can convert colors to and from CieLab in either the RGB or HSV color spaces.
| Constructor Summary | |
|---|---|
CieLabConversion()
Constructs a CieLabConversion using ArcGIS Engine. |
|
CieLabConversion(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. CieLabConversion theCieLabConversion = (CieLabConversion) obj; |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
double |
getDistance(double l1,
double a1,
double b1,
double l2,
double a2,
double b2)
Gets visual difference between two CIELAB colors. |
int |
getSettingsVersion()
The monitor settings version. |
int |
hashCode()
the hashcode for this object |
void |
hsvToLab(short h,
byte s,
byte v,
double[] l,
double[] a,
double[] b)
Converts an RGB color to a CIELAB color. |
void |
labToHsv(short[] h,
byte[] s,
byte[] v,
double l,
double a,
double b)
Converts a CIELAB color to an RGB color. |
void |
labToRgb(int[] rGB,
double l,
double a,
double b)
Converts a CIELAB color to an RGB color. |
void |
reloadSettings()
Reloads the monitor settings from the registry. |
void |
rgbToLab(int rGB,
double[] l,
double[] a,
double[] b)
Converts an RGB color to a CIELAB color. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
|---|
getJintegraDispatch, release |
| Constructor Detail |
|---|
public CieLabConversion()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public CieLabConversion(Object obj)
throws IOException
CieLabConversion theCieLabConversion = (CieLabConversion) obj;
obj to CieLabConversion.
obj - an object returned from ArcGIS Engine or Server
IOException - if there are interop problems| Method Detail |
|---|
public static String getClsid()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public void rgbToLab(int rGB,
double[] l,
double[] a,
double[] b)
throws IOException,
AutomationException
rgbToLab in interface ICieLabConversionrGB - The rGB (A COM typedef) (in)l - The l (out: use single element array)a - The a (in)b - The b (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void labToRgb(int[] rGB,
double l,
double a,
double b)
throws IOException,
AutomationException
labToRgb in interface ICieLabConversionrGB - The rGB (A COM typedef) (out: use single element array)l - The l (in)a - The a (in)b - The b (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void hsvToLab(short h,
byte s,
byte v,
double[] l,
double[] a,
double[] b)
throws IOException,
AutomationException
hsvToLab in interface ICieLabConversionh - The h (in)s - An unsigned byte (in)v - An unsigned byte (in)l - The l (out: use single element array)a - The a (in)b - The b (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void labToHsv(short[] h,
byte[] s,
byte[] v,
double l,
double a,
double b)
throws IOException,
AutomationException
labToHsv in interface ICieLabConversionh - The h (out: use single element array)s - An unsigned byte (out: use single element array)v - An unsigned byte (out: use single element array)l - The l (in)a - The a (in)b - The b (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getDistance(double l1,
double a1,
double b1,
double l2,
double a2,
double b2)
throws IOException,
AutomationException
getDistance in interface ICieLabConversionl1 - The l1 (in)a1 - The a1 (in)b1 - The b1 (in)l2 - The l2 (in)a2 - The a2 (in)b2 - The b2 (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void reloadSettings()
throws IOException,
AutomationException
reloadSettings in interface ICieLabConversionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getSettingsVersion()
throws IOException,
AutomationException
getSettingsVersion in interface ICieLabConversionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||