C# Class SoundInTheory.DynamicImage.Filters.ShinyFloorFilter

Creates the effect of an image placed on a shiny floor. This filter adds a reflection of the image just below it.
Inheritance: ImageReplacementFilter
Exibir arquivo Open project: sitdap/dynamic-image

Private Properties

Property Type Description
GetReflectionOffsetY int

Protected Methods

Method Description
ApplyFilter ( FastBitmap source, System.Windows.Media.DrawingContext dc, int width, int height ) : void

Applies the ShinyFloorFilter to the specified source.

GetDestinationDimensions ( FastBitmap source, int &width, int &height ) : bool

Returns the dimensions of the output image.

Private Methods

Method Description
GetReflectionOffsetY ( FastBitmap source ) : int

Method Details

ApplyFilter() protected method

Applies the ShinyFloorFilter to the specified source.
protected ApplyFilter ( FastBitmap source, System.Windows.Media.DrawingContext dc, int width, int height ) : void
source SoundInTheory.DynamicImage.Util.FastBitmap The source image.
dc System.Windows.Media.DrawingContext
width int
height int
return void

GetDestinationDimensions() protected method

Returns the dimensions of the output image.
protected GetDestinationDimensions ( FastBitmap source, int &width, int &height ) : bool
source SoundInTheory.DynamicImage.Util.FastBitmap The source image.
width int The desired width of the output image.
height int The desired height of the output image.
return bool