Show / Hide Table of Contents

Class ImageBrush

Implements brush with image

Inheritance
System.Object
DependencyObject
Freezable
Brush
ImageBrush
Inherited Members
Brush.OpacityProperty
Brush.Opacity
Brush.OnOpacityChanged(DependencyPropertyChangedEventArgs)
Freezable.IsFrozen
Freezable.Parent
Freezable.Changed
Freezable.Freeze()
Freezable.OnPropertyChanged(DependencyProperty)
DependencyObject.DependencyObjectType
DependencyObject.IsSealed
DependencyObject.Equals(Object)
DependencyObject.GetHashCode()
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.GetValue(DependencyProperty)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.GetLocalValueEnumerator()
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.SetBinding(DependencyProperty, Binding)
DependencyObject.SetResourceReference(DependencyProperty, Object)
Namespace: EmptyKeys.UserInterface.Media
Assembly: EmptyKeys.UserInterface.dll
Syntax
public class ImageBrush : Brush

Constructors

ImageBrush()

Initializes a new instance of the ImageBrush class.

Declaration
public ImageBrush()

Fields

ColorOverlayProperty

The color overlay property

Declaration
public static readonly DependencyProperty ColorOverlayProperty
Field Value
Type Description
DependencyProperty

ImageSourceProperty

The image source property

Declaration
public static readonly DependencyProperty ImageSourceProperty
Field Value
Type Description
DependencyProperty

StretchProperty

The stretch property

Declaration
public static readonly DependencyProperty StretchProperty
Field Value
Type Description
DependencyProperty

ViewboxProperty

The viewbox property

Declaration
public static readonly DependencyProperty ViewboxProperty
Field Value
Type Description
DependencyProperty

ViewboxUnitsProperty

The viewbox units property

Declaration
public static readonly DependencyProperty ViewboxUnitsProperty
Field Value
Type Description
DependencyProperty

Properties

ImageSource

Gets or sets the image source.

Declaration
public BitmapImage ImageSource { get; set; }
Property Value
Type Description
BitmapImage

The image source.

Stretch

Gets or sets the stretch.

Declaration
public Stretch Stretch { get; set; }
Property Value
Type Description
Stretch

The stretch.

Viewbox

Gets or sets the viewbox.

Declaration
public Rect Viewbox { get; set; }
Property Value
Type Description
EmptyKeys.UserInterface.Rect

The viewbox.

ViewboxUnits

Gets or sets the viewbox units.

Declaration
public BrushMappingMode ViewboxUnits { get; set; }
Property Value
Type Description
BrushMappingMode

The viewbox units.

Methods

Draw(TextureBase, Renderer, Double, PointF, Size, Single)

Draws the specified texture.

Declaration
public override void Draw(TextureBase texture, Renderer renderer, double elapsedGameTime, PointF position, Size renderSize, float opacity)
Parameters
Type Name Description
EmptyKeys.UserInterface.Media.TextureBase texture

The texture.

EmptyKeys.UserInterface.Renderers.Renderer renderer

The renderer.

System.Double elapsedGameTime

The elapsed game time.

EmptyKeys.UserInterface.PointF position

The position.

EmptyKeys.UserInterface.Size renderSize

Size of the render.

System.Single opacity

The opacity.

Overrides
Brush.Draw(TextureBase, Renderer, Double, PointF, Size, Single)

DrawGeometry(GeometryBuffer, TextureBase, Renderer, Double, PointF, Single)

Draws the geometry.

Declaration
public override void DrawGeometry(GeometryBuffer buffer, TextureBase texture, Renderer renderer, double elapsedGameTime, PointF position, float opacity)
Parameters
Type Name Description
EmptyKeys.UserInterface.Media.GeometryBuffer buffer

The buffer.

EmptyKeys.UserInterface.Media.TextureBase texture

The texture.

EmptyKeys.UserInterface.Renderers.Renderer renderer

The renderer.

System.Double elapsedGameTime

The elapsed game time.

EmptyKeys.UserInterface.PointF position

The position.

System.Single opacity

The opacity.

Overrides
Brush.DrawGeometry(GeometryBuffer, TextureBase, Renderer, Double, PointF, Single)

GetColorOverlay(DependencyObject)

Gets the color overlay.

Declaration
public static ColorW GetColorOverlay(DependencyObject obj)
Parameters
Type Name Description
DependencyObject obj

The object.

Returns
Type Description
EmptyKeys.UserInterface.Media.ColorW

SetColorOverlay(DependencyObject, ColorW)

Sets the color overlay.

Declaration
public static void SetColorOverlay(DependencyObject obj, ColorW value)
Parameters
Type Name Description
DependencyObject obj

The object.

EmptyKeys.UserInterface.Media.ColorW value

The value.

See Also

Brush
Back to top Generated by DocFX