This was a pain…. There are a couple of articles that got me really close, but this one was the finisher! http://www.eggheadcafe.com/software/aspnet/29093592/key-to-speed–use-byte-array-instead-of-writing-to-locked-image-bytes.aspx The trick was when I was converting the C# to vb.net from this article http://www.codeproject.com/KB/GDI-plus/SaveMultipageTiff.aspx?fid=370645&fr=1#xx0xx It mentions that you need to cast the bytes to ints This is the salient line pixelTotal = [...]
Filed under: Applied IT | Leave a Comment »