Got the "Retrieve" part!!!

IntPtr Pointer = IntPtr.Zero;

Pointer = cmsReadTag(hProfiler, 0x77747074); // MediaWhitePointTag


MyCIEXYZ MediaWhitePoint = (MyCIEXYZ)Marshal.PtrToStructure(Pointeur,
typeof(MyCIEXYZ));

That's it!!!! And this is the beautiful data I received!!!!

            // X = 0.964202880859375
            // Y = 0.9999847412109375
            // Z = 0.8251953125

I could kiss my monitor ;-)

Now, I have to figure out how to "Write" the data out to the profile.

My initial code looks like this:

[DllImport(@lcms2Path)]
public static extern bool cmsWriteTag(IntPtr hProfile, uint cmsTagSignature,
IntPtr Data);

I have to figure out how to pass a pointer to structure the cmsWriteTag???

Wish good luck ;-)

/ Roger Breton


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to