User Tools

Site Tools


thinkgeo.mapsuite.core.geotexturebrush

This is an old revision of the document!


ThinkGeo.MapSuite.Core.GeoTextureBrush

<!– Class –> This class is used to fill an area with a image texture.

Remarks

This class is used to fill an area with a image texture. For example, you may have a small bitmap that looks like marble, which you can then use to fill in an area feature.

Inheritance Hierarchy

Members Summary

Public Constructors

Name Parameters DeclaringType Summary
Public MethodGeoTextureBrush GeoImage This is a constructor for the class.
Public MethodGeoTextureBrush GeoImage, DrawingRectangleF This is a constructor for the class.
Public MethodGeoTextureBrush GeoImage, GeoWrapMode This is a constructor for the class.
Public MethodGeoTextureBrush GeoImage, GeoWrapMode, DrawingRectangleF This is a constructor for the class.

Protected Constructors

Name Parameters DeclaringType Summary

Public Methods

Name Parameters DeclaringType Summary
Public MethodCloneDeep GeoBrush Create a copy of GeoBrush using the deep clone process.
Public MethodEquals Object Object
Public MethodGetHashCode Object
Public MethodGetType Object
Public MethodToString Object

Protected Methods

Name Parameters DeclaringType Summary
Protected MethodCloneDeepCore GeoBrush Create a copy of GeoBrush using the deep clone process. The default implementation uses serialization.
Protected MethodFinalize Object
Protected MethodMemberwiseClone Object

Public Properties

Name Return DeclaringType Summary
Public PropertyDrawingRectangleF DrawingRectangleF This property gets and sets the screen rectangle used to fill the texture.
Public PropertyGeoImage GeoImage This property gets and sets the GeoImage used for the texture fill.
Public PropertyGeoWrapMode GeoWrapMode This property gets and sets the wrap mode that is used to determine how an area is filled if the area is larger than the texture.
Public PropertyId Int64 GeoBrush The id of the GeoBrush. This is always used as a key when in the cached brushes.

Protected Properties

Name Return DeclaringType Summary

Public Events

Name Event Arguments DeclaringType Summary

Public Constructors

GeoTextureBrush(GeoImage)

This is a constructor for the class.

Overloads

This overload allows you to pass in the image for the texture.

Remarks

You will use this constructor when you want to use the Tile wrap mode and you want the image fill to encompass the entire shape.

Parameters

Name Type Description
image GeoImage<!– ThinkGeo.MapSuite.Core.GeoImage –> This parameter is the image you want to use as the texture.

Go Back

GeoTextureBrush(GeoImage, DrawingRectangleF)

This is a constructor for the class.

Overloads

This constructor allows you to pass in the image as well as a screen rectangle that determines how much of the area is filled.

Remarks

This method allows you to pass in a rectangle in screen coordinates to determine how much of the area is textured.

Parameters

Name Type Description
image GeoImage<!– ThinkGeo.MapSuite.Core.GeoImage –> This parameter is the image you want to use as the texture.
rectangleF DrawingRectangleF<!– ThinkGeo.MapSuite.Core.DrawingRectangleF –> This parameter is a rectangle (in screen coordinates) that specifies the area you want to use for the texture.

Go Back

GeoTextureBrush(GeoImage, GeoWrapMode)

This is a constructor for the class.

Overloads

This constructor allows you to pass in the image and the wrap mode.

Parameters

Name Type Description
image GeoImage<!– ThinkGeo.MapSuite.Core.GeoImage –> This parameter is the image you want to use as the texture.
wrapMode GeoWrapMode<!– ThinkGeo.MapSuite.Core.GeoWrapMode –> This parameter determines the way the texture wraps when the area to fill is larger than the texture.

Go Back

GeoTextureBrush(GeoImage, GeoWrapMode, DrawingRectangleF)

This is a constructor for the class.

Overloads

This constructor allows you to pass in the image as well as a screen rectangle that determines how much of the area is filled along with the wrap mode.

Parameters

Name Type Description
image GeoImage<!– ThinkGeo.MapSuite.Core.GeoImage –> This parameter is the image you want to use as the texture.
wrapMode GeoWrapMode<!– ThinkGeo.MapSuite.Core.GeoWrapMode –> This parameter determines the way the texture wraps when the area to fill is larger than the texture.
rectangleF DrawingRectangleF<!– ThinkGeo.MapSuite.Core.DrawingRectangleF –> This parameter is a rectangle (in screen coordinates) that specifies the area you want to use for the texture.

Go Back

Protected Constructors

Public Methods

CloneDeep()

Create a copy of GeoBrush using the deep clone process.

Remarks

The difference between deep clone and shallow clone is as follows: In shallow cloning, only the object is copied; the objects within it are not. By contrast, deep cloning copies the cloned object as well as all the objects within.

Return Value

Return Type Description
GeoBrush<!– ThinkGeo.MapSuite.Core.GeoBrush –> A cloned GeoBrush.

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.Core.GeoBrush –> Go Back

Equals(Object)

Return Value

Return Type Description
Boolean<!– System.Boolean –>

Parameters

Name Type Description
obj Object<!– System.Object –>

<!– System.Object –> Go Back

GetHashCode()

Return Value

Return Type Description
Int32<!– System.Int32 –>

Parameters

Name Type Description

<!– System.Object –> Go Back

GetType()

Return Value

Return Type Description
Type<!– System.Type –>

Parameters

Name Type Description

<!– System.Object –> Go Back

ToString()

Return Value

Return Type Description
String<!– System.String –>

Parameters

Name Type Description

<!– System.Object –> Go Back

Protected Methods

CloneDeepCore()

Create a copy of GeoBrush using the deep clone process. The default implementation uses serialization.

Remarks

The difference between deep clone and shallow clone is as follows: In shallow cloning, only the object is copied; the objects within it are not. By contrast, deep cloning copies the cloned object as well as all the objects within.

Return Value

Return Type Description
GeoBrush<!– ThinkGeo.MapSuite.Core.GeoBrush –> A cloned GeoBrush.

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.Core.GeoBrush –> Go Back

Finalize()

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– System.Object –> Go Back

MemberwiseClone()

Return Value

Return Type Description
Object<!– System.Object –>

Parameters

Name Type Description

<!– System.Object –> Go Back

Public Properties

DrawingRectangleF

This property gets and sets the screen rectangle used to fill the texture.

Return Value

Return Type
DrawingRectangleF<!– ThinkGeo.MapSuite.Core.DrawingRectangleF –>

<!– ThinkGeo.MapSuite.Core.GeoTextureBrush –> Go Back

GeoImage

This property gets and sets the GeoImage used for the texture fill.

Return Value

Return Type
GeoImage<!– ThinkGeo.MapSuite.Core.GeoImage –>

<!– ThinkGeo.MapSuite.Core.GeoTextureBrush –> Go Back

GeoWrapMode

This property gets and sets the wrap mode that is used to determine how an area is filled if the area is larger than the texture.

Remarks

This property gets and sets the wrap mode that is used to determine how an area is filled if the area is larger than the texture.

Return Value

Return Type
GeoWrapMode<!– ThinkGeo.MapSuite.Core.GeoWrapMode –>

<!– ThinkGeo.MapSuite.Core.GeoTextureBrush –> Go Back

Id

The id of the GeoBrush. This is always used as a key when in the cached brushes.

Return Value

Return Type
Int64<!– System.Int64 –>

<!– ThinkGeo.MapSuite.Core.GeoBrush –> Go Back

Protected Properties

Public Events

thinkgeo.mapsuite.core.geotexturebrush.1440040128.txt.gz · Last modified: 2015/08/31 05:25 (external edit)