The IELayer type exposes the following methods.

Methods

 Public

 Protected
 Instance

 Static
 Declared

 Inherited
 XNA Framework Only

 .NET Compact Framework Only

 MemberDescription
ConvertToImageLayer(Double, Boolean)

Changes the Kindtype of the current layer to IEImageLayer.

This will change it from a vector-based layer to a standard bitmap layer. Bitmap layers can be edited using standard image modification features, but the quality will be lost if you resize the layer.

Note:

- For text layers, a qualityFactor of 1 usually works best

- To convert multiple layers, use IEImage.LayersConvertToImageLayers

CopyFrom(IELayer)
Replace current layer with a copy of the source layer.
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()()
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetIndex()()()()
Returns the index of this layer inside the Layers list.
GetLayerMask()()()()
Returns the layer mask associated with this layer.
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
PreferredAspectRatio()()()()

Returns the best ratio of Width/Height to display this layer.

Some layer types look best at their original aspect ratio (i.e. the ratio of Height:Width).

This is particularly true of images and some shapes.

Result is 0 if this layer type does not have a preferred aspect ratio.

Typical results:

Portrait image: 0.67

Landscape image: 1.33

Star shape: 1

Text box: 0 (i.e. no preferred ratio)

RestoreAspectRatio(Boolean)

Sizes the layer to restore its preferred or original aspect ratio (i.e. the ratio of Height:Width).

Some layer types look best at their original aspect ratio. This is particularly true of images and some shapes.

Calling RestoreAspectRatio will resize it (reducing its display size) to display it correctly.

Swap(IELayer)

Swaps the content of two layers.

Note: Both layers must be of the same Kind type

ToString()()()()
Returns a string that represents the current object.
(Inherited from Object.)
XBitmapToClient(Int32)
Converts a bitmap coordinate to window coordinate (applying Zoom and position/size of the layer).
XClientToBitmap(Int32)
Converts a window coordinate to the bitmap coordinate (applying Zoom and position/size of the layer).
YBitmapToClient(Int32)
Converts a bitmap coordinate to window coordinate (applying Zoom and position/size of the layer).
YClientToBitmap(Int32)
Converts a window coordinate to the bitmap coordinate (applying Zoom and position/size of the layer).

See Also