Since wxBitmap can have both alpha channel values and mask we have to use alpha channel (if required) in the sub-bitmap even if the mask is provided too. See #18513.
0b2ec56a