> The fix involved two places where I added a flt::uint16(..) cast, i.e. > > transparency = flt::uint16((1. - > packedColorRaw[3]) * (double)0xffff); > > I presume this is perfectly acceptable. Thanks. Looks like the right fix to me. -Paul