RSS/Atom feed Twitter
Site is read-only, email is disabled

a first step towards Cairo drawing

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

3 of 3 messages available
Toggle history

Please log in to manage your subscriptions.

a first step towards Cairo drawing Sven Neumann 27 Oct 23:22
  a first step towards Cairo drawing Chris Mohler 31 Oct 01:27
   a first step towards Cairo drawing peter sikking 06 Nov 11:22
Sven Neumann
2007-10-27 23:22:46 UTC (about 17 years ago)

a first step towards Cairo drawing

Moin,

as a first exercise in Cairo drawing, I would like to start with something very simple and port GimpScrolledPreview to Cairo. There's really only one single thing here that we would want to use Cairo for and that is drawing the outline in the navigation popup. Here's a screenshot of what it currently looks like:

http://sven.gimp.org/misc/preview-navigation-popup.png

Note that we use the same popup in the bottom right corner of the image window.

Currently we are drawing the rectangle using XOR. When we switch to Cairo this should probably change. But I am not entirely sure how to best draw a nice-looking outline that is visible on all images. Perhaps some of the artists out there could draw me some nice mockups?

I've picked this example because it is simple but still gets us directly into the problem of replacing the current XOR drawing with something nicer. Looking forward to your comments...

Sven

Chris Mohler
2007-10-31 01:27:55 UTC (about 17 years ago)

a first step towards Cairo drawing

On 10/27/07, Sven Neumann wrote: [...]

Currently we are drawing the rectangle using XOR. When we switch to Cairo this should probably change. But I am not entirely sure how to best draw a nice-looking outline that is visible on all images. Perhaps some of the artists out there could draw me some nice mockups?

How about darkening the outside-of-the-view area and then adding a simple white border?
http://cr33dog.fedorapeople.org/misc/gimp/nav.png

My only concern is that very dark images may become black in the outside view. On the upside, I'm pretty sure the visible area will be clearly defined on all image types - light images will benefit most from the darkened transparency, and dark images will benefit most from the white box. Both ways, the rectangle is clearly visible.

Just a thought...

Chris

peter sikking
2007-11-06 11:22:23 UTC (about 17 years ago)

a first step towards Cairo drawing

Chris Mohler wrote:

Sven Neumann wrote:

Currently we are drawing the rectangle using XOR. When we switch to Cairo this should probably change. But I am not entirely sure how to best draw a nice-looking outline that is visible on all images. Perhaps
some of the artists out there could draw me some nice mockups?

How about darkening the outside-of-the-view area and then adding a simple white border?
http://cr33dog.fedorapeople.org/misc/gimp/nav.png

yep, that is also what I came up with.

overlay the outside with 50% transparent black, and a 1 pixel 50% transparent white border.

that should work on all images. The percentages (the gray value or the alpha) can be adjusted when the darkening/lightening turns out to be too severe, like it is in the screenshot linked above.

--ps

founder + principal interaction architect man + machine interface works

http://mmiworks.net/blog : on interaction architecture