- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for readPNG (0.14 sec)
-
src/image/jpeg/writer_test.go
if d < 0 { return -d } return d } func readPng(filename string) (image.Image, error) { f, err := os.Open(filename) if err != nil { return nil, err } defer f.Close() return png.Decode(f) } func TestWriter(t *testing.T) { for _, tc := range testCase { // Read the image. m0, err := readPng(tc.filename) if err != nil { t.Error(tc.filename, err) continue
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 06 15:49:30 UTC 2022 - 7.2K bytes - Viewed (0) -
src/image/png/writer_test.go
names = filenamesShort } for _, fn := range names { qfn := "testdata/pngsuite/" + fn + ".png" // Read the image. m0, err := readPNG(qfn) if err != nil { t.Error(fn, err) continue } // Read the image again, encode it, and decode it. m1, err := readPNG(qfn) if err != nil { t.Error(fn, err) continue } m2, err := encodeDecode(m1) if err != nil { t.Error(fn, err)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 14 08:14:05 UTC 2022 - 8.9K bytes - Viewed (0) -
src/image/png/reader_test.go
} if pal == nil { t.Errorf("%s: palette not initialized", fn) continue } } } func TestInterlaced(t *testing.T) { a, err := readPNG("testdata/gray-gradient.png") if err != nil { t.Fatal(err) } b, err := readPNG("testdata/gray-gradient.interlaced.png") if err != nil { t.Fatal(err) } if !reflect.DeepEqual(a, b) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 24 12:12:12 UTC 2022 - 28.5K bytes - Viewed (0)