In windows printing, convert src bitmap to dest bitmap using CompositeBitmap.
authorBo Xu <bo_xu@foxitsoftware.com>
Mon, 5 Jan 2015 18:11:47 +0000 (10:11 -0800)
committerBo Xu <bo_xu@foxitsoftware.com>
Mon, 5 Jan 2015 18:11:47 +0000 (10:11 -0800)
commit07f10ae2eede1ad1fbb4424064eaaaa77dfb90d2
tree94b66b4acb8a6f2f20a292505e6bfb79acb79085
parentd66051b5edfee0279b504b49f7d167f03c17c6dd
In windows printing, convert src bitmap to dest bitmap using CompositeBitmap.

When dealing with transparency, the printing procedure will generate a bitmap first,
then draw this bitmap in windows DC.
The format of source bitmap is argb, but the destination bitmap is rgb.
Simply doing memcpy will lose the alpha channel information, so CompositeBitmap function is needed.

BUG=412908
R=vitalybuka@chromium.org

Review URL: https://codereview.chromium.org/826633002
fpdfsdk/src/fpdfview.cpp