Skip to content

GeoTextureBrush

Namespace: ThinkGeo.Core

This class is used to fill an area with a image texture.

public class GeoTextureBrush : GeoBrush

Inheritance ObjectGeoBrushGeoTextureBrush

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.

Properties

GeoImage

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

public GeoImage GeoImage { get; }

Property Value

GeoImage
This property gets the NativeImage used for the texture fill.

Remarks:

None

DrawingRectangleF

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

public DrawingRectangleF DrawingRectangleF { get; set; }

Property Value

DrawingRectangleF
This property gets the screen rectangle used to fill the texture.

Remarks:

None

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 GeoBrushWrapMode GeoWrapMode { get; set; }

Property Value

GeoBrushWrapMode

        This property gets 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.

Id

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

public long Id { get; }

Property Value

Int64

Constructors

GeoTextureBrush(GeoImage)

This is a constructor for the class.

public GeoTextureBrush(GeoImage image)

Parameters

image GeoImage
This parameter is the image you want to use as 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.

GeoTextureBrush(GeoImage, DrawingRectangleF)

This is a constructor for the class.

public GeoTextureBrush(GeoImage image, DrawingRectangleF rectangleF)

Parameters

image GeoImage
This parameter is the image you want to use as the texture.

rectangleF DrawingRectangleF

        This parameter is a rectangle (in screen coordinates) that specifies the area you want
        to use for the texture.

Remarks:

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

GeoTextureBrush(GeoImage, GeoBrushWrapMode)

This is a constructor for the class.

public GeoTextureBrush(GeoImage image, GeoBrushWrapMode wrapMode)

Parameters

image GeoImage
This parameter is the image you want to use as the texture.

wrapMode GeoBrushWrapMode

        This parameter determines the way the texture wraps when the area to fill is
        larger than the texture.

Remarks:

None

GeoTextureBrush(GeoImage, GeoBrushWrapMode, DrawingRectangleF)

This is a constructor for the class.

public GeoTextureBrush(GeoImage image, GeoBrushWrapMode wrapMode, DrawingRectangleF rectangleF)

Parameters

image GeoImage
This parameter is the image you want to use as the texture.

wrapMode GeoBrushWrapMode

        This parameter determines the way the texture wraps when the area to fill is
        larger than the texture.

rectangleF DrawingRectangleF

        This parameter is a rectangle (in screen coordinates) that specifies the area you want
        to use for the texture.

Remarks:

None