Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarolyn MacLeod2012-01-25 22:28:28 +0000
committerCarolyn MacLeod2012-01-25 22:28:28 +0000
commitccacc0579ad724e5e6606103c04b8166879c34a7 (patch)
treedbee38a8a6e967d9161ee25ae988d5bfadbdb10a /examples/org.eclipse.swt.snippets/src/org/eclipse
parentf5f169975f78acfb62d02c5946132af058ccb5e6 (diff)
downloadeclipse.platform.swt-ccacc0579ad724e5e6606103c04b8166879c34a7.tar.gz
eclipse.platform.swt-ccacc0579ad724e5e6606103c04b8166879c34a7.tar.xz
eclipse.platform.swt-ccacc0579ad724e5e6606103c04b8166879c34a7.zip
update comments
Diffstat (limited to 'examples/org.eclipse.swt.snippets/src/org/eclipse')
-rw-r--r--examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet361.java4
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);

Back to the top