How to get the individual RGB values from the Common Dialog's return value
If you want to convert the Common Dialog's color to e.g. hex values (for use in HTML code), you might want to extract the Red, Green and Blue parts of the color code that is returned. This is how you do it.
Author: Red = RGBValue And &HFF& Green = (RGBValue And &HFF00&) / 256 Blue = (RGBValue And &HFF0000) / 65536 |
||
Editor: Last update: 2024-10-06 Copyright 1995-2024 VBI |