Hi folks,
As part of our art break down we have to write out the code codes for different items whether CMYK, RGB, or L*a*b.
In-house L*a*b is our go-to colour and I've come across an issue where my VBA macro does not seem to be getting the Luminance right from the colour.
In my code snippet:
If (obj.Fill.UniformColor.Type = cdrColorLab) Then fillName = "L: " & obj.Fill.UniformColor.LabLuminance & ", a:" & obj.Fill.UniformColor.LabComponentA & ", b:" & obj.Fill.UniformColor.LabComponentBEnd If
Will return the Luminance as 96 for an item that is actually 38 and 61 for an actual luminance of 24.
The "a" and "b" elements are consistently correct.
Am I missing a key element here?
Thanks in advance!
Looking at the Color.LabLuminance property, it shows that it has values from 0 to 255.
I think this means that you can divide by 2.55 to get the expected range of 0 to 100.
Oh my gosh, thank you!
Thank you! I had completely forgotten that the luminance was out of 100 and couldn't figure it out.