Hey guys,
so i was given this question by one of my dads friends. With no information or turtorial. Just a paper and a pencil. Needless to say, it did not go well, and now my brain want to know the answer. I will try and remember the question as best i can.
Write a C++ function that will convert a 24bit color pixel in the follow format
RGB24(8:8:8)
into a 16bit color pixel
RGB16(5:6:5)
ensure that all the proper variable checking is done.
i have never worked on anything like this, so i would love any feed back.
Thanks!
so i was given this question by one of my dads friends. With no information or turtorial. Just a paper and a pencil. Needless to say, it did not go well, and now my brain want to know the answer. I will try and remember the question as best i can.
Write a C++ function that will convert a 24bit color pixel in the follow format
RGB24(8:8:8)
into a 16bit color pixel
RGB16(5:6:5)
ensure that all the proper variable checking is done.
i have never worked on anything like this, so i would love any feed back.
Thanks!
Comment