I don't know how you created the clipboard bitmap.
By press <Prt Sr> key. You give a try then you see what I means. Your 32bpp code also has the same issue.