Creates a new cursor from the bitmap Bitmap.

Namespace:  SGP.XUtility
Assembly:  SGP.XUtility (in SGP.XUtility.dll)
Version: 1.2.3019.18718

Syntax

C#
[CLSCompliantAttribute(false)]
public static Cursor CreateCursorFromBitmap(
	Bitmap bitmap,
	Color transparentColor,
	uint hotSpotX,
	uint hotSpotY
)

Parameters

bitmap
Type: System.Drawing..::.Bitmap
A source bitmap Bitmap.
transparentColor
Type: System.Drawing..::.Color
The transparent color Color.
hotSpotX
Type: System..::.UInt32
The center of a cursor in the X-axis.
hotSpotY
Type: System..::.UInt32
The center of a cursor in the Y-axis.

Return Value

Returns a newly created cursor.

Exceptions

ExceptionCondition
System..::.ArgumentNullException bitmap is nullNothingnullptra null reference (Nothing in Visual Basic).

See Also