|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ILayerEffects
Provides access to members that control layer effects.
Use
this interface to changes brightness, contrast, and transparency
for a layer. The controls on the Effects toolbar in ArcMap
utilize this interface. Not all layers support all layer effects.
For example, FeatureLayer objects only support
transparency, while RasterLayer
objects support all effects. Before you attempt to change
a layer effect, you should check to see if the layer supports the
effect. Use SupportsBrightnessChange,
SupportsContrastChange, and
SupportsTransparency for this.
The display settings on your computer must be set to
True Color for layer effects to work
correctly.
Method Summary | |
---|---|
short |
getBrightness()
Layer brightness in percent (-100 - 100). |
short |
getContrast()
Layer contrast in percent (-100 - 100). |
short |
getTransparency()
Layer transparency in percent (0-100). |
boolean |
isSupportsBrightnessChange()
Indicates if the layer supports brightness changes. |
boolean |
isSupportsContrastChange()
Indicates if the layer supports contrast changes. |
boolean |
isSupportsInteractive()
Indicates if the layer supports interactive effects changes. |
boolean |
isSupportsTransparency()
Indicates if the layer supports transparency. |
void |
setBrightness(short brightnessValue)
Layer brightness in percent (-100 - 100). |
void |
setContrast(short contrastValue)
Layer contrast in percent (-100 - 100). |
void |
setSupportsInteractive(boolean supported)
Indicates if the layer supports interactive effects changes. |
void |
setTransparency(short alpha)
Layer transparency in percent (0-100). |
Method Detail |
---|
boolean isSupportsTransparency() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isSupportsContrastChange() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isSupportsBrightnessChange() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSupportsInteractive(boolean supported) throws IOException, AutomationException
supported
- The supported (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isSupportsInteractive() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.short getTransparency() throws IOException, AutomationException
When
you set Transparency for a
FeatureLayer, a
TransparencyDisplayFilter is created and applied
to the layer. You can accomplish the same effect by manually
creating a new TransparencyDisplayFilter using IDisplayFilter, and
then assigning it to a layer using
IDisplayFilterManager.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setTransparency(short alpha) throws IOException, AutomationException
alpha
- The alpha (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.short getContrast() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setContrast(short contrastValue) throws IOException, AutomationException
contrastValue
- The contrastValue (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.short getBrightness() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setBrightness(short brightnessValue) throws IOException, AutomationException
brightnessValue
- The brightnessValue (in)
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 |