From 96d3b5e38301f5d4eff01de8730b6021eb167af9 Mon Sep 17 00:00:00 2001 From: Wei-Ta Chen Date: Tue, 11 Jan 2011 22:42:17 -0800 Subject: [PATCH] Correct the API comments. BitmapRegionDecoder supports PNG as well. Change-Id: I5f1b95c20c3ae87738f9814cfc16d6a4c5af2bf5 --- graphics/java/android/graphics/BitmapRegionDecoder.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/graphics/java/android/graphics/BitmapRegionDecoder.java b/graphics/java/android/graphics/BitmapRegionDecoder.java index 454eb4a02dd0a..496e0c71d837e 100644 --- a/graphics/java/android/graphics/BitmapRegionDecoder.java +++ b/graphics/java/android/graphics/BitmapRegionDecoder.java @@ -39,7 +39,7 @@ public final class BitmapRegionDecoder { /** * Create a BitmapRegionDecoder from the specified byte array. - * Currently only the Jpeg format is supported. + * Currently only the JPEG and PNG formats are supported. * * @param data byte array of compressed image data. * @param offset offset into data for where the decoder should begin @@ -67,7 +67,7 @@ public final class BitmapRegionDecoder { * Create a BitmapRegionDecoder from the file descriptor. * The position within the descriptor will not be changed when * this returns, so the descriptor can be used again as is. - * Currently only the Jpeg format is supported. + * Currently only the JPEG and PNG formats are supported. * * @param fd The file descriptor containing the data to decode * @param isShareable If this is true, then the BitmapRegionDecoder may keep a @@ -89,7 +89,7 @@ public final class BitmapRegionDecoder { * Create a BitmapRegionDecoder from an input stream. * The stream's position will be where ever it was after the encoded data * was read. - * Currently only the Jpeg format is supported. + * Currently only the JPEG and PNG formats are supported. * * @param is The input stream that holds the raw data to be decoded into a * BitmapRegionDecoder. @@ -126,7 +126,7 @@ public final class BitmapRegionDecoder { /** * Create a BitmapRegionDecoder from a file path. - * Currently only the Jpeg format is supported. + * Currently only the JPEG and PNG formats are supported. * * @param pathName complete path name for the file to be decoded. * @param isShareable If this is true, then the BitmapRegionDecoder may keep a