[Pixelle-commit] SF.net SVN: pixelle:[305] trunk/pixelle/src/com/mebigfatguy/pixelle/eval/ PixelleE
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2009-09-05 21:47:25
|
Revision: 305
http://pixelle.svn.sourceforge.net/pixelle/?rev=305&view=rev
Author: dbrosius
Date: 2009-09-05 21:47:17 +0000 (Sat, 05 Sep 2009)
Log Message:
-----------
unnecessary cast
Modified Paths:
--------------
trunk/pixelle/src/com/mebigfatguy/pixelle/eval/PixelleEvalIntRGB.java
Modified: trunk/pixelle/src/com/mebigfatguy/pixelle/eval/PixelleEvalIntRGB.java
===================================================================
--- trunk/pixelle/src/com/mebigfatguy/pixelle/eval/PixelleEvalIntRGB.java 2009-09-05 21:46:45 UTC (rev 304)
+++ trunk/pixelle/src/com/mebigfatguy/pixelle/eval/PixelleEvalIntRGB.java 2009-09-05 21:47:17 UTC (rev 305)
@@ -36,16 +36,16 @@
@Override
public double getBlueValue(int x, int y) {
- return (double)(buffer.getElem(y * width + x) & 0x00FF);
+ return (buffer.getElem(y * width + x) & 0x00FF);
}
@Override
public double getGreenValue(int x, int y) {
- return (double)((buffer.getElem(y * width + x) >> 8) & 0x00FF);
+ return ((buffer.getElem(y * width + x) >> 8) & 0x00FF);
}
@Override
public double getRedValue(int x, int y) {
- return (double)((buffer.getElem(y * width + x) >> 16) & 0x00FF);
+ return ((buffer.getElem(y * width + x) >> 16) & 0x00FF);
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|