I need to get the size of rectangle of classical windows cursor.
How can I get the size of the cursor in c#?
Size of a pointer is fixed for a compiler. All pointer types take same number of bytes for a compiler. That is why we get 4 for both ptri and ptrc.
The pointer is 8 bytes, because you are compiling for a 64bit system. The int it is pointing at is 4 bytes.
Source Code: C Program To Find Size of Pointer Variables Size of float pointer = 4 bytes. Size of double pointer = 4 bytes.
You can use Cursor.Size:
int cursorWidth = Cursor.Size.Width;
int cursorHeight = Cursor.Size.Height;
Yes, it is really that simple!
Hope this helps!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With