G
Guest
Let's say I have an image which is monochrome with areas of white, black and
shades of gray. Now I want to turn all the white parts into some RGB color
but it also needs to be darkened by the gray areas for the same color.
Like say it's an image of a sphere, it is white in the part it is under the
light but then as you get away from the light source it becomes darker and
darker gray. Now I want to take this image and apply just one RGB color to
it, so it becomes say a red sohere, blue one, whatever. So that parts that
were whitest and purest red, and then the red gets darker where the grays are
darker.
It's easy to do this manually in something like photoshop, but I need to
make a a windows app that does this programmatically depending on what RGB
choice user makes.
Any ideas how?
shades of gray. Now I want to turn all the white parts into some RGB color
but it also needs to be darkened by the gray areas for the same color.
Like say it's an image of a sphere, it is white in the part it is under the
light but then as you get away from the light source it becomes darker and
darker gray. Now I want to take this image and apply just one RGB color to
it, so it becomes say a red sohere, blue one, whatever. So that parts that
were whitest and purest red, and then the red gets darker where the grays are
darker.
It's easy to do this manually in something like photoshop, but I need to
make a a windows app that does this programmatically depending on what RGB
choice user makes.
Any ideas how?