The IEPolylineLayer type exposes the following methods.

Methods

 Public

 Protected
 Instance

 Static
 Declared

 Inherited
 XNA Framework Only

 .NET Compact Framework Only

 MemberDescription
AddPoint(Int32, Int32)

Add a point to the end of a polyline.

Each point of the polyline is represented by an x and y value in the range 0 to 1000. Where (0, 0) is the top-left pixel of the layer and (1000, 1000) is the bottom-right.

ClearAllPoints()()()()
Removes all points from the polyline.
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

(Inherited from IELayer.)
CopyFrom(IELayer)
Replace current layer with a copy of the source layer.
(Inherited from IELayer.)
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.
(Inherited from IELayer.)
GetLayerMask()()()()
Returns the layer mask associated with this layer.
(Inherited from IELayer.)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
Points(Int32)

Returns the points of the polyline.

Each point of the polyline is represented by an x and y value in the range 0 to 1000. Where (0, 0) is the top-left pixel of the layer and (1000, 1000) is the bottom-right.

Use PointCount to determine the number of points in the Polyline.

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)

(Inherited from IELayer.)
RemovePoint(Int32)
Removes a point from a Polyline.
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.

(Inherited from IELayer.)
SetPoints(array<IEPoint>[]()[][], Boolean)

Set the points of the polyline.

Each point of the polyline is represented by an x and y value in the range 0 to 1000. Where (0, 0) is the top-left pixel of the layer and (1000, 1000) is the bottom-right.

SetPoints(IEShape, Boolean)

Set the points of the polyline.

Each point of the polyline is represented by an x and y value in the range 0 to 1000. Where (0, 0) is the top-left pixel of the layer and (1000, 1000) is the bottom-right.

The point array will be filled with a IEShape. Not all shapes are supported.

SimplifyPolygon(Int32)
Replaces a high resolution polyline with a lower resolution polyline with fewer vertices (MaxPoints).
Swap(IELayer)

Swaps the content of two layers.

Note: Both layers must be of the same Kind type

(Inherited from IELayer.)
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).
(Inherited from IELayer.)
XClientToBitmap(Int32)
Converts a window coordinate to the bitmap coordinate (applying Zoom and position/size of the layer).
(Inherited from IELayer.)
YBitmapToClient(Int32)
Converts a bitmap coordinate to window coordinate (applying Zoom and position/size of the layer).
(Inherited from IELayer.)
YClientToBitmap(Int32)
Converts a window coordinate to the bitmap coordinate (applying Zoom and position/size of the layer).
(Inherited from IELayer.)

See Also