Erroneous information returned from CImage Class
-
Hi I am still on the red bullet bitmap. What I have been trying to do is change the color of the surrounding rectangle from white to gray. to match the background of where I bitblt to I have used CImage to load it Create it. When I try to access the header info such width and height I get the right values back even including the bitbitcount there are 8 bits to represent a pixel (256 colors) However I when use methods such as GetColorTable or Getbits and look at pointers returned it is all hex zeros. I have opened the file with hex editor and can see it anything but returned. I am trying to get to the pixels represented by white RGB(255,255,255) I know there can be shades of white and turn it into Gray(0XD3,0XD3,0XD3) to match the background of where I have bitblt (place it) it to
-
Hi I am still on the red bullet bitmap. What I have been trying to do is change the color of the surrounding rectangle from white to gray. to match the background of where I bitblt to I have used CImage to load it Create it. When I try to access the header info such width and height I get the right values back even including the bitbitcount there are 8 bits to represent a pixel (256 colors) However I when use methods such as GetColorTable or Getbits and look at pointers returned it is all hex zeros. I have opened the file with hex editor and can see it anything but returned. I am trying to get to the pixels represented by white RGB(255,255,255) I know there can be shades of white and turn it into Gray(0XD3,0XD3,0XD3) to match the background of where I have bitblt (place it) it to
It is hard to guess how you has implemented it without seeing your code.