FLTK logo

Re: [fltk.general] Re: Rounded Frames/Draw Rounded Rectangle

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   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: Re: Rounded Frames/Draw Rounded Rectangle Webb Hinton Jul 27, 2021  
  Incredible! Erco to the rescue yet again. Thanks!

On Tuesday, July 27, 2021 at 9:08:32 PM UTC-4 er...@seriss.com wrote:

On 7/27/21 6:02 PM, Albrecht Schlosser wrote:

On 7/27/21 10:46 PM Ian MacArthur wrote:
On 27 Jul 2021, at 21:27, Webb Hinton wrote:
Or consider the following UI designs:

Rounded avatar pictures:
<roundedavatars.PNG>

Rounded images in a grid:
<masonary-images.jpg>
You could also draw the image first in a rectangular shape and the rounded corners (in the background color) "over" the image.

Yep, that's actually what I just ended up implementing as a widget called RoundedImageDisplay.
Added it to my cheat page just now:
http://seriss.com/people/erco/fltk/#RoundedCorners

The result is antialiased corners, and in the demo you can interactively change the corner radius
with a slider, the result being:


--
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/05599edf-2184-4973-8587-71d5f4b182e3n%40googlegroups.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

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