View Single Post
Old 31 August 2014, 19:22   #1011
PeterK
Registered User
 
Join Date: Apr 2005
Location: Hangover
Posts: 2,161
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 offline  
 
Page generated in 0.03974 seconds with 10 queries