What is the fastest way to copy the alpha values of pixels between 2 images of the same dimensions? That is:

Qt Code:
  1. copyAlphaChannel(image1, image2);
To copy to clipboard, switch view to plain text mode 

where image1.size() == image2.size().