Method MouseCursor.Load(+ 1 overload)
Overload
Loads cursor from file.
public static MouseCursor Load(string file, int size = 0)
Parameters
file (string)
|
size (int)
Width and height. If 0, uses system default size, which depends on DPI. |
Returns
MouseCursor
|
Overload(top)
Creates cursor from cursor file data in memory, for example from a managed resource.
public static MouseCursor Load(byte[] cursorData, int size = 0)
Parameters
cursorData (byte[])
Data of |
size (int)
Width and height. If 0, uses system default size, which depends on DPI. |
Returns
MouseCursor
|
Remarks
This function creates/deletes a temporary file, because there is no good API to load cursor from memory.