Re: [Lcms-user] Difficulty with cmsTransform in C#

2016-07-07 Thread Edgar Loser
> Does this code actually work for you? Yes is does. Perhaps I should have mentioned that you need at least .Net 4 In 3.5 it's available but does not work... (s. https://social.msdn.microsoft.com/Forums/en-US/be7ad7d6-972f-4a39-ae90-55660d66c561/iccprofildaten-via-colorcontext?forum=wpfde) The s

Re: [Lcms-user] Difficulty with cmsTransform in C#

2016-07-06 Thread Roger Breton
Edgar, You wrote : > // create lcms inputprofile > IntPtr inputProfileH = IntPtr.Zero; >I f (biFrm.ColorContexts != null) { > byte[] inputProfile = > StreamToArray(biFrm.ColorContexts[0].OpenProfileStream()); > inputProfileH = > Basic.Lcms.NativeMethods.cmsOpenProfileFromMem(inputPro

Re: [Lcms-user] Difficulty with cmsTransform in C#

2016-06-30 Thread Edgar Loser
> If I could develop my application strictly in C, my problems accessing > LittleCMS would be non-existent, > but I need to develop in C# :( Working with C# is not too bad! >[...] > cmsDoTransform(cmsHTRANSFORM Transform, const void * InputBuffer, > v

Re: [Lcms-user] Difficulty with cmsTransform in C#

2016-06-29 Thread Roger Breton
If I could develop my application strictly in C, my problems accessing LittleCMS would be non-existent, but I need to develop in C# :( I am seeking help with re-coding the cmsDoTransform declaration. Right now, I use this : [DllImport(@lcmsPath, CallingConvention = CallingConvention.Winapi)] s

Re: [Lcms-user] Difficulty with cmsTransform in C#

2016-06-17 Thread Marti Maria
Hi Roger, I'm not a c# expert, but your code seems fine. I guess the problem is elsewhere... Regards Marti Maria The LittleCMS project http://www.littlecms.com -Original Message- From: Roger Breton [mailto:gr...@videotron.ca] Sent: jueves, 16 de junio de 2016 21:25 To: lcms-user@lists.

Re: [Lcms-user] Difficulty with cmsTransform in C#

2016-06-17 Thread Edgar Loser
Did you declare input[] and output[] as volatile? (s. https://msdn.microsoft.com/de-de/library/x13ttww7.aspx) Edgar Am 16.06.2016 um 21:25 schrieb Roger Breton: > Tengo una pequena problema... > > I need to convert 400 RGB values to Lab using a monitor profile. > > I use the following C# code :