You are viewing a plain text version of this content. The canonical link for it is here.
Posted to sanselan-commits@incubator.apache.org by cm...@apache.org on 2007/11/17 22:17:02 UTC

svn commit: r596013 - /incubator/sanselan/trunk/src/main/java/org/cmc/sanselan/sampleUsage/SampleUsage.java

Author: cmchen
Date: Sat Nov 17 14:17:01 2007
New Revision: 596013

URL: http://svn.apache.org/viewvc?rev=596013&view=rev
Log:
minor cleanup of sample usage class.

Modified:
    incubator/sanselan/trunk/src/main/java/org/cmc/sanselan/sampleUsage/SampleUsage.java

Modified: incubator/sanselan/trunk/src/main/java/org/cmc/sanselan/sampleUsage/SampleUsage.java
URL: http://svn.apache.org/viewvc/incubator/sanselan/trunk/src/main/java/org/cmc/sanselan/sampleUsage/SampleUsage.java?rev=596013&r1=596012&r2=596013&view=diff
==============================================================================
--- incubator/sanselan/trunk/src/main/java/org/cmc/sanselan/sampleUsage/SampleUsage.java (original)
+++ incubator/sanselan/trunk/src/main/java/org/cmc/sanselan/sampleUsage/SampleUsage.java Sat Nov 17 14:17:01 2007
@@ -71,19 +71,19 @@
 			Sanselan.writeImage(image, os, format, optional_params);
 
 			// <b>get the image's embedded ICC Profile, if it has one. </b>
-			byte icc_profile_bytes[] = Sanselan.getICCProfileBytes(imageBytes);
+			byte iccProfileBytes[] = Sanselan.getICCProfileBytes(imageBytes);
 
-			ICC_Profile icc_profile = Sanselan.getICCProfile(imageBytes);
+			ICC_Profile iccProfile = Sanselan.getICCProfile(imageBytes);
 
 			// <b>get the image's width and height. </b>
 			Dimension d = Sanselan.getImageSize(imageBytes);
 
 			// <b>get all of the image's info (ie. bits per pixel, size, transparency, etc.) </b>
-			ImageInfo image_info = Sanselan.getImageInfo(imageBytes);
+			ImageInfo imageInfo = Sanselan.getImageInfo(imageBytes);
 
-			if (image_info.getColorType() == ImageInfo.COLOR_TYPE_GRAYSCALE)
+			if (imageInfo.getColorType() == ImageInfo.COLOR_TYPE_GRAYSCALE)
 				System.out.println("Grayscale image.");
-			if (image_info.getHeight() > 1000)
+			if (imageInfo.getHeight() > 1000)
 				System.out.println("Large image.");
 
 			// <b>try to guess the image's format. </b>
@@ -98,7 +98,7 @@
 			Sanselan.dumpImageFile(imageBytes);
 
 			// <b>get a summary of format errors. </b>
-			FormatCompliance format_compliance = Sanselan
+			FormatCompliance formatCompliance = Sanselan
 					.getFormatCompliance(imageBytes);
 
 		}