|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IColor
Provides access to members that control the basic color interface.
IColor is a generic interface that are implemented by all the other color CoClasses. IColor is also where transparency is managed. The other color interfaces derived from IColor interface are: IRgbColor, ICmykColor, IHsvColor, IHlsColor, and IGrayColor. You can also convert any of the color interfaces to OLE color objects by using the RGB method.
ICmykColor
,
IColor
,
IEnumColors
,
ICieLabConversion
Method Summary | |
---|---|
void |
getCIELAB(double[] l,
double[] a,
double[] b)
The CIELAB value of color. |
int |
getCMYK()
The CMYK value of color. |
int |
getRGB()
The RGB value of color. |
byte |
getTransparency()
The Alpha Blending value. |
boolean |
isNullColor()
Indicates whether this color is null. |
boolean |
isUseWindowsDithering()
Indicates if colors should be dithered to simulate colors that aren't supported by the display. |
void |
setCIELAB(double l,
double a,
double b)
The CIELAB value of color. |
void |
setCMYK(int cMYK)
The CMYK value of color. |
void |
setNullColor(boolean flag)
Indicates whether this color is null. |
void |
setRGB(int rGB)
The RGB value of color. |
void |
setTransparency(byte alphaValue)
The Alpha Blending value. |
void |
setUseWindowsDithering(boolean useDithering)
Indicates if colors should be dithered to simulate colors that aren't supported by the display. |
Method Detail |
---|
void setRGB(int rGB) throws IOException, AutomationException
rGB
- The rGB (A COM typedef) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.It is easiest to specify the rgb values in hexadecimal. The following code creates an RGBColor for black -
RGBColor black = new RGBColor();
black.setRGB(0xFFFFFF);
int getRGB() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setCMYK(int cMYK) throws IOException, AutomationException
cMYK
- The cMYK (A COM typedef) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getCMYK() throws IOException, AutomationException
CMYK returns the Long (ASCII) number calculated from the Cyan, Magenta, Yellow and Black color attributes.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setUseWindowsDithering(boolean useDithering) throws IOException, AutomationException
useDithering
- The useDithering (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isUseWindowsDithering() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setCIELAB(double l, double a, double b) throws IOException, AutomationException
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 getCIELAB(double[] l, double[] a, double[] b) throws IOException, AutomationException
l
- The l (out: use single element array)a
- The a (out: use single element array)b
- The b (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setTransparency(byte alphaValue) throws IOException, AutomationException
alphaValue
- An unsigned byte (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.byte getTransparency() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setNullColor(boolean flag) throws IOException, AutomationException
Boolean indicator that specifies if the color will be Null or Transparent. The default for NullColor is False.
flag
- The flag (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isNullColor() throws IOException, AutomationException
Boolean indicator that specifies if the color will be Null or Transparent. The default for NullColor is False.
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 |