gfxset32
gfxset32(offset + y1 * bpr, color.data32, (x2 - x1 + 1) * 4);
gfxset32(offset + y1 * bpr, gradientArray[y1 - top],
gfxset32(dst, color.data32, bytes);