So I've been starting DS programming, and I notice that to draw a pixel the color must be a RGB(0, 31, 0). Is there any way to change that to something ...
I've color values coming in six bits, with two bits each for red, green and blue. So black would be represented as binary 000000, red 110000, blue 000011, yellow 111100 and ...
That's the assigment from my teacher, but i think in 'normal' terms that means: Write a function that takes RGB(r,g,b); r, g and b being values between 0 and 31; it then converts it to 16 bit RGB. I haven't a clue how to do that, or what it means. Thanks in advance. Note that a value in the range [0, ...
anuragkhanna8@gmail.com wrote: Hi, > I am trying to convert a 16 bit rgb value to 32 bit, however the new color generated is different from the 16 bit rgb data. Please let me know the formula to convert an 16 bit rgb data to 32 bit rgb data. Thanks!! You need to rigidly specify the actual bitwise format for both the ...
1.) CF_DIB: copy the whole image header+bitmap bits into your global handle and put it into clipboard. 2.) CF_BITMAP: for 1.) its unnecessary to create a bitmap object (HBITMAP) but put it to the clipboard in this step. at this this time i don't know who owns the handles, look at documentation for SetClipboardData. good luck.