Class GeoTextureBrush
This class is used to fill an area with a image texture.
public class GeoTextureBrush : GeoBrush
- Inheritance
-
GeoTextureBrush
- Inherited Members
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.
Constructors
GeoTextureBrush(GeoImage)
This is a constructor for the class.
public GeoTextureBrush(GeoImage image)
Parameters
image
GeoImageThis 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
GeoImageThis parameter is the image you want to use as the texture.
rectangleF
DrawingRectangleFThis 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
GeoImageThis parameter is the image you want to use as the texture.
wrapMode
GeoBrushWrapModeThis 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
GeoImageThis parameter is the image you want to use as the texture.
wrapMode
GeoBrushWrapModeThis parameter determines the way the texture wraps when the area to fill is larger than the texture.
rectangleF
DrawingRectangleFThis parameter is a rectangle (in screen coordinates) that specifies the area you want to use for the texture.
Remarks
None
Properties
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
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
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.