diff options
author | Carolyn MacLeod <Carolyn_MacLeod@ca.ibm.com> | 2012-01-25 17:28:28 -0500 |
---|---|---|
committer | Carolyn MacLeod <Carolyn_MacLeod@ca.ibm.com> | 2012-01-25 17:28:28 -0500 |
commit | ccacc0579ad724e5e6606103c04b8166879c34a7 (patch) | |
tree | dbee38a8a6e967d9161ee25ae988d5bfadbdb10a /examples | |
parent | f5f169975f78acfb62d02c5946132af058ccb5e6 (diff) | |
download | eclipse.platform.swt-ccacc0579ad724e5e6606103c04b8166879c34a7.tar.gz eclipse.platform.swt-ccacc0579ad724e5e6606103c04b8166879c34a7.tar.xz eclipse.platform.swt-ccacc0579ad724e5e6606103c04b8166879c34a7.zip |
update comments
Diffstat (limited to 'examples')
-rw-r--r-- | examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet361.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet361.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet361.java index 81ee2f06c3..cb4d7a3c85 100644 --- a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet361.java +++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet361.java @@ -11,7 +11,8 @@ package org.eclipse.swt.snippets; /* - * example snippet: use Java2D to modify an image being displayed in an SWT GUI + * example snippet: use Java2D to modify an image being displayed in an SWT GUI. + * Take a screen snapshot to print the image to a printer. * * For a list of all SWT example snippets see * http://www.eclipse.org/swt/snippets/ @@ -153,6 +154,7 @@ public class Snippet361 { canvas = new Canvas() { public void paint (Graphics g) { if (image != null) { + /* Use Java2D here to modify the image as desired. */ Graphics2D g2d = (Graphics2D) g; AffineTransform t = new AffineTransform(); t.translate(translateX, translateY); |