I'm not asking how to do anything, I just need to know why something is happening. I wrote a program that is very simple, it takes a screenshot of a user-defined portion of the screen. Up until now I hadn't noticed anything wrong with it at all (and I haven't made any changes to the code that actually takes the screenshot, so I just didn't actually notice it happening.)
Earlier though, I was testing some things out and I took a screenshot and noticed a few pixels were white (or I thought they were white.) I opened the image in Photoshop and learned that the pixels were actually transparent. I thought that was weird, but ignored it. Then I took another screenshot (after my desktop background had changed to a different picture) and opened it up...there were even more transparent pixels. So I opened the screenshot and the original image in Photoshop and overlayed them on top of each other so that the transparent pixels matched up with the actual pixel color from the original, and I learned that the pixel color being made transparent is #0D0B0C, or Red 13, Green 11, and Blue 12.
Now I'm not sure if this is just my computer, so I don't want to go potentially messing things up by just clearing the graphics object to that color before taking the screenshot. Is there any reason this would happen? I know that if I specify a location off-screen for the screenshot to be taken, it shows up as transparent, could it be that the area off-screen is actually set to that color?
Anyway, I'd just like to know how I could fix this, without taking the easy-but-potentially-not-right Graphics.Clear( ) path.
Earlier though, I was testing some things out and I took a screenshot and noticed a few pixels were white (or I thought they were white.) I opened the image in Photoshop and learned that the pixels were actually transparent. I thought that was weird, but ignored it. Then I took another screenshot (after my desktop background had changed to a different picture) and opened it up...there were even more transparent pixels. So I opened the screenshot and the original image in Photoshop and overlayed them on top of each other so that the transparent pixels matched up with the actual pixel color from the original, and I learned that the pixel color being made transparent is #0D0B0C, or Red 13, Green 11, and Blue 12.
Now I'm not sure if this is just my computer, so I don't want to go potentially messing things up by just clearing the graphics object to that color before taking the screenshot. Is there any reason this would happen? I know that if I specify a location off-screen for the screenshot to be taken, it shows up as transparent, could it be that the area off-screen is actually set to that color?
Anyway, I'd just like to know how I could fix this, without taking the easy-but-potentially-not-right Graphics.Clear( ) path.
Comment