Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Windows image
I was doing a project and ran into this problem: When creating a big ARGB PNG (8192x8192 as an example), sometimes when viewing it in Windows Photo Viewer and other Microsoft programs, the background is shown as BLACK even though I use Color.Transparent or FromARGB(0, 255, 255, 255) or FromARGB(0, 0, 0, 0). After discovering this I created another file with Paint.NET (all transparent, 32bit) just for test And it did the same thing: Sometimes when opened, it indicated transparent, and some times the same file was showing plain black! I also had seen this behavior outputting to TIFF, but at the time I thought it was something I did (not closing a filled polygon or something...)
 
I also tried with... smaller files, like 1000x1000, and they never had the issue.
 
I confirmed the behavior at a friends setup (also a Win7, 64bit)... sooo Whats going on? Why cant my Windows 7 PS1 Pro, 64Bit (and most important: the customers setup) not interpret alpha on 'big' files?
Posted 17-Sep-12 4:41am
Comments
TRK3 at 17-Sep-12 18:18pm
   
Assuming the problem only occurs with "Big" files, I'd guess that perhaps the big image is too big to fit into the GPU hardware and so the Microsoft software has to fall back to doing the image processing either in chunks in the GPU or doing it all in the CPU.
 
Apparently one of those fall-back implementations has a bug in it.
 
It's certainly not anything we can help you with here, since the bug isn't in your code.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 269
1 OriginalGriff 240
2 CPallini 195
3 Maciej Los 177
4 BillWoodruff 173
0 OriginalGriff 5,655
1 DamithSL 4,506
2 Maciej Los 3,997
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,180


Advertise | Privacy | Mobile
Web03 | 2.8.141216.1 | Last Updated 17 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100