`CImage.Creator.getPlatformImageBytes` always returns TIFF. This patch reuses `DataTransferer.imageToStandardBytes` for `CF_PNG` and `CF_JPEG` instead of calling into `getPlatformImageBytes`. JPEG doesn't support transparency, so images with alpha are blitted onto a white background before conversion.
--------- - [X] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - 8313706: [macos] Clipboard#setContents uses TIFF image data for all image content types Changes: https://git.openjdk.org/jdk/pull/33969/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=33969&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8313706 Stats: 318 lines in 3 files changed: 303 ins; 1 del; 14 mod Patch: https://git.openjdk.org/jdk/pull/33969.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/33969/head:pull/33969 PR: https://git.openjdk.org/jdk/pull/33969
