Re: [fltk.general] Support for More (or Custom) Cursors?

GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Support for More (or Custom) Cursors? Ian MacArthur 03:12 Apr 27 top right image
 
On Tuesday, 27 April 2021 at 07:28:03 UTC+1 Webb wrote:

I was returning to this thread because I was wondering if anyone had any thoughts on how scaling the cursor image across different monitors might work, so very happy to see some examples. Any thoughts on why cursor must take an RgbImage and not an SVG?

Have you tried the Fl_SVG_Image type? As Greg points out, it may well Just Work if the SVG is loaded and scaled appropriately.

However, in answer to the question, the crux is basically "history" and that the cursor in a lot of systems is (or at least used to be) a sprite handled directly by the GPU hardware, and so there were (are) some constraints on how the cursor and its mask could be loaded (it basically has/had to be a pixel map, or in some cases even, literally, a bit map.)

So generally, to make it work, you need to scale and convert the image you have into a pixel map to be loaded and displayed, regardless of whether the source of the image is a pixel format or a vector format.


Also, as an aside, the convention when posting in this group is to *not* top post, but to interleave responses with the relevant citations, trimming where appropriate...



--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/c394aaed-701f-43e1-8b92-f728eafeaa6an%40googlegroups.com.
Direct Link to Message ]
 
bottom left image   bottom right image
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2021 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.