Click here to Skip to main content
12,746,406 members (31,079 online)
Rate this:
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
TRK3 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
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170215.1 | Last Updated 17 Sep 2012
Copyright © CodeProject, 1999-2017
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