Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get the fourth hex value
Message
From
10/10/2012 10:47:35
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
10/10/2012 10:38:39
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01554642
Message ID:
01554658
Views:
51
This message has been marked as a message which has helped to the initial question of the thread.
>I did find one adjustment so far. The last line should be:
>
>
>	pair2Y = rgb(pair2Yred, pair2Ygreen , pair2Yblue )
>
>
>This fixes that line but still results in another color than the one expected.

While reading this thread I was about to propose something similar, but not using the difference (specially that your pair2 plus the difference may go over 255). I'd go with

newR2=newR1*(oldR2/oldR1)

and same for G and B.

You could maybe achieve a similar result by taking the average of the quotients for each R, G and B.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform