The IEImageLayer type exposes the following methods.
Methods
Public Protected | Instance Static | Declared Inherited | XNA Framework Only .NET Compact Framework Only |
Member | Description | |
---|---|---|
Clear(IERGB, Int32, Int32) |
Clear current image
| |
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.
(Inherited from IELayer.) | |
CropAlpha()()()() |
Removes any transparent area on the edge of the layer bitmap, repositioning and resizing the resulting layer to the visible rectangle.
| |
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.) | |
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. | |
RestoreSize()()()() |
Sizes the layer to original dimensions (i.e. display at 100% zoom).
| |
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).
(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.) |