Hi Marti, On Fri, 04 Jul 2008 8:45:13 pm Marti.Maria wrote: > The currenty python bindings does not support floating point RGB, you > can convert values to 16 bits that > is what is lcms doing internally. You will obtain same precission. > > c = COLORW() > c[0] = int(R * 65535.0 + 0.5) > c[1] = int(G * 65535.0 + 0.5) > c[2] = int(B * 65535.0 + 0.5)
Thanks for that. That should work for now at least. Although, I'm not really very happy with that solution as it doesn't really provide proper bindings for what's possible. I'm still very tempted to create a ctypes based Python API. This would greatly ease the process of wrapping as it stays in the pure Python world. Guy -- Guy K. Kloss Institute of Information and Mathematical Sciences Te Kura Putaiao o Mohiohio me Pangarau Room 2.63, Quad Block A Building Massey University, Auckland, Albany Private Bag 102 904, North Shore Mail Centre voice: +64 9 414-0800 ext. 9585 fax: +64 9 441-8181 eMail: [EMAIL PROTECTED] http://iims.massey.ac.nz
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________ Lcms-user mailing list Lcms-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lcms-user