C# Class ScreenToGif.Controls.CroppingAdorner

Inheritance: System.Windows.Documents.Adorner
Show file Open project: dbremner/ScreenToGif Class Usage Examples

Public Properties

Property Type Description
ClipRectangleProperty System.Windows.DependencyProperty
CropChangedEvent System.Windows.RoutedEvent
FillProperty System.Windows.DependencyProperty

Public Methods

Method Description
CropImage ( ) : System.Windows.Media.Imaging.BitmapSource
CroppingAdorner ( UIElement adornedElement, Rect rcInit ) : System

Protected Methods

Method Description
ArrangeOverride ( Size finalSize ) : Size
GetVisualChild ( int index ) : Visual

Private Methods

Method Description
AdornedElement_SizeChanged ( object sender, System.Windows.SizeChangedEventArgs e ) : void
AdornerMargin ( ) : System.Windows.Thickness
BuildCorner ( System.Windows.Controls.Primitives.Thumb &thumb, System.Windows.Input.Cursor cursor ) : void
ClipRectanglePropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
CroppingAdorner ( ) : System
FillPropChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
HandleBottom ( object sender, System.Windows.Controls.Primitives.DragDeltaEventArgs args ) : void
HandleBottomLeft ( object sender, System.Windows.Controls.Primitives.DragDeltaEventArgs args ) : void
HandleBottomRight ( object sender, System.Windows.Controls.Primitives.DragDeltaEventArgs args ) : void
HandleLeft ( object sender, System.Windows.Controls.Primitives.DragDeltaEventArgs args ) : void
HandleRight ( object sender, System.Windows.Controls.Primitives.DragDeltaEventArgs args ) : void
HandleThumb ( double drcL, double drcT, double drcW, double drcH, double dx, double dy ) : void
HandleTop ( object sender, System.Windows.Controls.Primitives.DragDeltaEventArgs args ) : void
HandleTopLeft ( object sender, System.Windows.Controls.Primitives.DragDeltaEventArgs args ) : void
HandleTopRight ( object sender, System.Windows.Controls.Primitives.DragDeltaEventArgs args ) : void
SetPosition ( System.Windows.Controls.Primitives.Thumb thumb, double x, double y ) : void
SetThumbs ( Rect rc ) : void
UnitsToPx ( double x, double y ) : System.Drawing.Point

Method Details

ArrangeOverride() protected method

protected ArrangeOverride ( Size finalSize ) : Size
finalSize System.Windows.Size
return System.Windows.Size

CropImage() public method

public CropImage ( ) : System.Windows.Media.Imaging.BitmapSource
return System.Windows.Media.Imaging.BitmapSource

CroppingAdorner() public method

public CroppingAdorner ( UIElement adornedElement, Rect rcInit ) : System
adornedElement UIElement
rcInit System.Windows.Rect
return System

GetVisualChild() protected method

protected GetVisualChild ( int index ) : Visual
index int
return Visual

Property Details

ClipRectangleProperty public static property

public static DependencyProperty,System.Windows ClipRectangleProperty
return System.Windows.DependencyProperty

CropChangedEvent public static property

public static RoutedEvent,System.Windows CropChangedEvent
return System.Windows.RoutedEvent

FillProperty public static property

public static DependencyProperty,System.Windows FillProperty
return System.Windows.DependencyProperty