GraphicsExtensions DrawReflection Method (Graphics, Image, RectangleF, Int32, Int32, Single, Single) FormX
Windows Forms eXtensions
Draws a reflection effect on the current canvas.

Namespace: System.DrawingX
Assembly: Windows.Forms.Extensions (in Windows.Forms.Extensions.dll) Version: 0.2.4510.21587 (0.2.*)
Syntax

<ExtensionAttribute> _
Public Shared Sub DrawReflection ( _
	g As Graphics, _
	data As Image, _
	origin As RectangleF, _
	gap As Integer, _
	height As Integer, _
	startAlpha As Single, _
	endAlpha As Single _
)

Parameters

g
Type: OnlineSystem.Drawing Graphics
The current graphics object.
data
Type: OnlineSystem.Drawing Image
The underlying image with the pixels to reflect.
origin
Type: OnlineSystem.Drawing RectangleF
The rectangle where the pixels should be taken from.
gap
Type: OnlineSystem Int32
The gap between the reflection part and the original in pixels.
height
Type: OnlineSystem Int32
The height of the reflection.
startAlpha
Type: OnlineSystem Single
The opacity (0 to 1) at the beginning of the reflection.
endAlpha
Type: OnlineSystem Single
The opacity (0 to 1) at the end of the reflection.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type OnlineGraphics. When you use instance method syntax to call this method, omit the first parameter. For more information, see [b8020aae-374d-46a9-bcb7-8cc2390b93b6] or [175ce3ff-9bbf-4e64-8421-faeb81a0bb51].
See Also