@@ -0,0 +1,1282 @@
+/*%0A * Copyright 2016 Hippo Seven%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage com.hippo.nimingban;%0A%0Aimport android.util.Log;%0A%0Aimport com.hippo.image.Image;%0A%0Aimport junit.framework.TestCase;%0A%0Aimport java.io.FileInputStream;%0Aimport java.io.FileNotFoundException;%0A%0Apublic class ImageTest extends TestCase %7B%0A%0A    public void testPngDecode() throws FileNotFoundException %7B%0A        int i = 1;%0A        while (i-- %3E 0) %7B%0A%0A            if (i %25 10 == 0) %7B%0A                Log.d(%22TAG%22, %22%22 + (i / 10));%0A            %7D%0A%0A            Image image = Image.decode(new FileInputStream(%22/sdcard/b.png%22), false);%0A            if (image != null) %7B%0A                image.recycle();%0A            %7D else %7B%0A                Log.d(%22TAG%22, %22image is null%22);%0A            %7D%0A        %7D%0A    %7D%0A%7D%0A

Add png decode test