image - C# Bitmap object, color appearing as transparent -


i'm working on program in c# takes screenshots of potion of user's screen. pert works should, i've run 1 issue. there seems (at least) 1 pixel color appears transparent in output image. instance of color #0d0b0c (rgb 13, 11, 12) appears transparent in saved png. pixelformat set format32bppargb. if set format32bpprgb or format24bpprgb, same pixel color appears black in saved png.

i have no idea causing this, thing i've been able "fix" clear graphics object color before doing copyfromscreen(). i'm loathe though few reasons. first, don't know if that's color has issue (what 16,777,216 colors there's quite few possibilities), , second, hate hack fixes, seems hack fix.

can shed light on might causing issue? i've messed pixelformat on bitmap creation , copypixeloperation in copyfromscreen method, nothing seems work. fact clearing graphics object color "fixes" seems tell me transparency coming screen data itself, doesn't make sense. i've been staring @ long, think need fresh perspective on it. if has idea why might happening i'd love hear it. thank you.

is alpha value maybe 0? have checked it?

because big different between format32bppargb , format32bpprgb second format not know alpha channel.


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -