I am using the following code to set the image as a node's mouse cursor.
On macOS, the cursor's size will change based on the bitmap's size. But on Windows, the display size is fixed. I wonder how to solve this problem.
B4X:
Dim bc As BitmapCreator
bc.Initialize(SizeSlider.Value,SizeSlider.Value)
Dim r As B4XRect
r.Initialize(0,0,SizeSlider.Value,SizeSlider.Value)
bc.DrawRect(r,xui.Color_ARGB(120,255,0,0),True,1)
Dim img As Image = bc.Bitmap
Dim ImageCursor As JavaObject
ImageCursor.InitializeNewInstance("javafx.scene.ImageCursor",Array(img,img.Width/2,img.Height/2))
Dim jo As JavaObject = Canvas1
jo.RunMethod("setCursor", Array(ImageCursor))
On macOS, the cursor's size will change based on the bitmap's size. But on Windows, the display size is fixed. I wonder how to solve this problem.