Re: Color space transformations in GTK



On Thu, 2006-06-01 at 17:16 +0200, Øyvind Kolås wrote:
> On 5/31/06, Carlos Eduardo Rodrigues Diógenes <cerdiogenes yahoo com br> wrote:
> > Hi,
> >
> > There is any plan to add color spaces conversions in GTK+ (GDK or
> > Gdk-Pixbuf)? If the answear is no, why not?
> 
> Pixel format conversions is not a small piece of code and the needed
> pixel formats varies from scenario to scenario. Most programs will not
> need such a large general infrastructure and the ones that really need
> it would probably not be satisfied with a simpler solution.

I think that I understand your last argument. And what I really have in
mind is a simple solution, more below...

> 
> What functionality is it you miss that you think fits into a GUI
> toolkit? (color management is a seperate issue to color space(pixel
> format) conversions according to my interpretation of your question).

I had to make RGB <-> HSL conversions, because it's more intuitive
change some color properties in the HSL color space. I thinked that we
could have something like GdkColor for other color spaces and functions
to convert between GdkColor and the other color spaces.

I think that it will help who want to play with colors in a quick way. I
don't find this in any other library, and I thinked that GTK+ could be a
good place for this, because it will become easiest to work with other
colors representations in GTK+ applications.

> 
> /Øyvind K.
-- 
Carlos Eduardo Rodrigues Diógenes
Projeto xLupa - http://www.unioeste.br/projetos/xlupa




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]