The IELayer type exposes the following properties.
Properties
Public Protected | Instance Static | Declared Inherited | XNA Framework Only .NET Compact Framework Only |
Member | Description | |
---|---|---|
AlphaEdgeFeathering | If the layer has an alpha channel then edges of the image will be "feathered." Feathering softens the edges of an image by applying alpha transparency at a rate that is proportional to the distance to the edge (specifically, adding a gradient in the alpha channel). The value (0 to 255) indicates the depth in pixels of the feather effect. Default: 0 (no edge feathering) | |
Antialias |
Improves the quality of layer drawing by using anti-aliasing.
| |
AspectRatioLocked |
When enabled the PreferredAspectRatio for the layer will be enforced regardless of the setting for LayersResizeAspectRatio.
| |
BorderColor |
Provides generic access to the color of the border/line of the layer.
| |
BorderWidth |
Provides generic access to the width of the border/line of the layer.
| |
Cropped | If true and the layer is out of background image (layer 0) area, this layer will be cut to the background. | |
DrawOuter |
If True draws unselected layers as 'grayed'. The selected layer is drawn normally.
| |
FillColor |
Provides generic access to the fill color of the layer. Set to ARGB of (0, 0, 0, 0) for no fill (i.e. transparent background)
| |
FillColor2 | Provides generic access to the secondary gradient fill color of the layer. If FillColor2 is different from FillColor it is drawn as a gradient (and not set to ARGB of (0, 0, 0, 0)). The direction of the gradient is specified by FillGradient. | |
FillGradient |
Provides generic access to the gradient fill direction for the layer.
| |
FillOpacity | Set the opacity of the layer fill. This value is a percentage of the layer's opacity. I.e. if FillOpacity is 0.5, and Opacity is 0.5, then the fill's actual opacity will be 0.25. | |
GroupIndex | Specifies the Group ID of the layer. When a layer is selected all other layers with the same group ID are automatically selected too. GroupIndex can be any value. A GroupIndex of 0 means the layer is not grouped. Note: GroupIndex is only valid if multiple layer selection is enabled. | |
Height |
Specifies the layer size (i.e. display height when zoom is 100%).
| |
IsMask | If True this is a layer mask. A layer mask contains a gray scale image (ie8g) which is connected to the upper layer. The layer mask specifies where the upper layer is visible (255=fully visible). A layer mask should be invisible (Visible=False). | |
Kind |
Kind of layer
| |
Locked | If False user can move or resize the layer. Also this enables to show the layer border and resizing grips. | |
MagnifyEnabled | If true this is a magnify layer. The bitmap of the layer is filled with the background zoomed according to MagnifyRate property. This property doesn’t apply to layer 0. | |
MagnifyRate | Specify the rate of the magnify layer (magnification). Allowed values greather than 1. Valid only if MagnifyEnabled=True. This property doesn’t apply to layer 0. | |
MagnifySource | Specifies the magnify layer source. It can be IEMagnifySource.BackgroundLayer to get data from the background layer and IEMagnifySource.Canvas to get data from the painted background. If you want the magnify the layer 0 image, getting pixels directly from the bitmap use IEMagnifySource.BackgroundLayer. | |
MagnifyStyle | Specify the magnify layer shape. It can be Rectangle or Ellipse. Valid only if MagnifyEnabled=True. This property doesn’t apply to layer 0. | |
Modified |
Returns true if the layer has been changed since it was created or loaded.
| |
Name |
Specifies an user assignable name.
| |
Opacity |
Set the overall opacity of the layer in the range from 0.0 (fully transparent) to 1.0 (totally opaque).
Use Opacity instead of Transparency when the image has an alpha channel.
| |
Operation |
Specify the operation to execute between this layer and the background layer.
| |
PosX |
Specifies the horizontal position of the layer relative to the background image (layer 0).
| |
PosY |
Specifies the vertical position of the layer relative to the background image (layer 0).
| |
ResampleFilter |
Actived only when UseResampleFilter is true this property specifies a resample filter to use instead of default one (ZoomFilter).
| |
Rotate | Specifies the layer rotation angle in degrees. It is not allowed Rotation and Resize in the same time. To allow resize after a layer rotation, it must be maked effective, actually rotate the bitmap. Viceversa to allow rotation after a resize, the resizing must be effective, actually resizing the bitmap. To make effective layer rotation call IEImage.LayersFixRotations. To make effective layer resizing call IEImage.LayersFixSizes. Finally, multiple rotations can cause the bitmap add external, transparent, border. To remove this border call IEImage.LayersFixBorders. When rotations are handled by IEViewer (setting EnableRotateLayers), you don't need to call LayersFixRotations, LayersFixSizes and LayersFixBorders. | |
RotateCenterX | Specifies the horizontal rotation center, in percentage of layer size. 0.5 means center (default), while 0 is left side and 1 is right side. Also allowed values out of 0..1 range. This value (and RotateCenterY) is modified when user moves the central grip, when layers rotation is active. | |
RotateCenterY | Specifies the vertical rotation center, in percentage of layer size. 0.5 means center (default), while 0 is top side and 1 is bottom side. Also allowed values out of 0..1 range. This value (and RotateCenterX) is modified when user moves the central grip, when layers rotation is active. | |
Selectable |
Allows the layer to be selectable (the default).
| |
Selected |
True if the layer is currently selected.
| |
Shadow | Enables and sets the properties of the layer shadow. Note: Shadows cannot be enabled for the background layer (layer 0). | |
Tag |
An integer value that you can use for your own purposes.
| |
Transparency |
Allows to set the overall transparency of the layer (255=opaque….0=transparent)
| |
UseResampleFilter |
This property actives the value specified in ResampleFilter.
| |
Visible |
Set to True to make the layer visible, otherwise set to False to hide it.
| |
VisibleBox |
If True, a box around the layer will be displayed.
| |
Width |
Specifies the layer size (i.e. display width when zoom is 100%).
|