|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ICieLabConversion
Provides access to members that control the CIE Lab conversion.
The CieLabConversion coclass provides information about the location of colors within the CIELAB color space, the device-independent color model used internally by ArcObjects. Colors can be converted from RGB and HSV models to the CIELAB model. It can also be used to compare the visual difference between two colors.
The ICieLabConversion interface provides four methods for converting colors to and from the CIELAB color model (these methods are the ones used by the IColor interface's SetCIELab and GetCIELab methods).
ICmykColor
,
IColor
,
IEnumColors
,
ICieLabConversion
Method Summary | |
---|---|
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. |
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. |
Method Detail |
---|
void rgbToLab(int rGB, double[] l, double[] a, double[] b) throws IOException, AutomationException
rGB
- 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.void labToRgb(int[] rGB, double l, double a, double b) throws IOException, AutomationException
rGB
- 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.void hsvToLab(short h, byte s, byte v, double[] l, double[] a, double[] b) throws IOException, AutomationException
h
- 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.void labToHsv(short[] h, byte[] s, byte[] v, double l, double a, double b) throws IOException, AutomationException
h
- 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.double getDistance(double l1, double a1, double b1, double l2, double a2, double b2) throws IOException, AutomationException
l1
- 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.void reloadSettings() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getSettingsVersion() throws IOException, AutomationException
IOException
- 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 |