VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Splits a color value into red, green and blue.

by Denis Petrussenko (1 Submission)
Category: Graphics
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Sun 10th February 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Splits a color value into red, green and blue.

Rate Splits a color value into red, green and blue.



 
 xBlue = Int(Color / 65536)
 xGreen = Int((Color - xBlue * 65536) / 256)
 xRed = Int((Color - xBlue * 65536) - (xGreen * 256))

End Sub

Download this snippet    Add to My Saved Code

Splits a color value into red, green and blue. Comments

No comments have been posted about Splits a color value into red, green and blue.. Why not be the first to post a comment about Splits a color value into red, green and blue..

Post your comment

Subject:
Message:
0/1000 characters