Re: How to create a control just as RGB Sphere and Alpha bar

2009-09-25 Thread Steve Christensen
Is there some reason why you can't use the color picker to specify a color+alpha value? It would save you a bunch of work in duplicating existing system functionality. On Sep 24, 2009, at 11:20 PM, Symadept wrote: Hi Graham, Yes. But do you have any other ways to handle this. I want somet

Re: How to create a control just as RGB Sphere and Alpha bar

2009-09-25 Thread Jens Alfke
On Sep 25, 2009, at 3:02 AM, Florian Soenens wrote: http://www.google.com/search?client=safari&rls=en-us&q=cocoa+get+pixel+rgb+value&ie=UTF-8&oe=UTF-8 In this case it might be better to check http://lmgtfy.com/?q=cocoa+get+pixel+rgb+value first. One of my favorite references in these sorts

Re: How to create a control just as RGB Sphere and Alpha bar

2009-09-25 Thread Florian Soenens
http://www.google.com/search?client=safari&rls=en-us&q=cocoa+get+pixel+rgb+value&ie=UTF-8&oe=UTF-8 Florian. On 25 Sep 2009, at 09:12, Symadept wrote: Hi Graham, I tried to display the RGB spectrum as an image in the view. How can I pick particular pixel color from that image. Does it make s

Re: How to create a control just as RGB Sphere and Alpha bar

2009-09-25 Thread Symadept
Hi Graham, I tried to display the RGB spectrum as an image in the view. How can I pick particular pixel color from that image. Does it make sense? -Mustafa On Fri, Sep 25, 2009 at 2:29 PM, Graham Cox wrote: > tsk, tsk - lazy, lazy. > > http://mattgemmell.com/2008/12/08/what-have-you-tried > > h

Re: How to create a control just as RGB Sphere and Alpha bar

2009-09-24 Thread Graham Cox
tsk, tsk - lazy, lazy. http://mattgemmell.com/2008/12/08/what-have-you-tried http://catb.org/~esr/faqs/smart-questions.html C'mon, get real. No-one's going to write your code for you. If you can't find a free class somewhere, subclass NSView yourself. A location <--> RGB mapping is pretty

Re: How to create a control just as RGB Sphere and Alpha bar

2009-09-24 Thread Symadept
Hi Graham, Yes. But do you have any other ways to handle this. I want something like this I could be able to pick the color from the spectrum band and could change the Alpha (This I can manage to some extent, Immediately I need to handle the picking colour from the spectrum.) Regards Mustafa O

Re: How to create a control just as RGB Sphere and Alpha bar

2009-09-24 Thread Graham Cox
On 25/09/2009, at 1:14 PM, Symadept wrote: Can any help me how to create a view which contains Spectrum Bar (Just as RGB Sphere in NSColorPanel) and an Alpha bar? NSImageView? --Graham ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) P

How to create a control just as RGB Sphere and Alpha bar

2009-09-24 Thread Symadept
Hi, Can any help me how to create a view which contains Spectrum Bar (Just as RGB Sphere in NSColorPanel) and an Alpha bar? Thanks in advance Regards Mustafa ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or m