View Single Post
Old 31 August 2014, 20:22   #1011
Registered User
Join Date: Apr 2005
Location: Hangover
Posts: 1,812
Yes I know, I've read that, and that's why I tried the same
It seems, that it was the bottleneck in your library, but not in mine.

When using the row based loops I also scanned every line from the start and from the end towards the middel for subsequent transparent pixels and removed them from the calls to ReadPixelArray() and WritePixelArray(). Since icons usually have a lot of these transparent background pixels this was a nice speedup for the row based processing, which will rarely occur with normal PNG images like pictures.
PeterK is online now  
Page generated in 0.09910 seconds with 9 queries