Bug 272616 GB18030: 4-byte GB18030 displayed as ? in SWT Clipboard RTFTransfer.
examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/clipboard/ClipboardExample.java
if (copyImage[0] != null) {
				int hSelection = copyHBar.getSelection();
				int destX = -hSelection - copyOrigin.x;
				Rectangle rect = copyImage[0].getBounds();
				copyImageCanvas.scroll(destX, 0, 0, 0, rect.width, rect.height, false);
				copyOrigin.x = -hSelection;
			}
		}
	});
	final ScrollBar copyVBar = copyImageCanvas.getVerticalBar();
	copyVBar.setEnabled(false);
	copyVBar.addListener(SWT.Selection, new Listener() {
		public void handleEvent (Event e) {
			if (copyImage[0] != null) {
				int vSelection = copyVBar.getSelection();
				int destY = -vSelection - copyOrigin.y;
				Rectangle rect = copyImage[0].getBounds();
				copyImageCanvas.scroll(0, destY, 0, 0, rect.width, rect.height, false);
				copyOrigin.y = -vSelection;
			}
		}
	});
	copyImageCanvas.addListener(SWT.Paint, new Listener() {
		public void handleEvent(Event e) {
			if(copyImage[0] != null) {
				GC gc = e.gc;
				gc.drawImage(copyImage[0], copyOrigin.x, copyOrigin.y);
				Rectangle rect = copyImage[0].getBounds();
				Rectangle client = copyImageCanvas.getClientArea ();
				int marginWidth = client.width - rect.width;