switch (numBytesPerPixel) {
                case 4:
                    dstBuffer[dstInitialOffset + 3] =
                        srcBuffer[srcPixelIndex + 3];
                case 3: