How to read image file?

26 views
Skip to first unread message

lemon Miao

unread,
Nov 23, 2022, 3:56:31 AM11/23/22
to skia-discuss
I dont' find SkImageDecoder class, I don't know how to read jpg or png from file?

Leon Scroggins

unread,
Nov 23, 2022, 10:02:28 AM11/23/22
to skia-d...@googlegroups.com
SkCodec replaced SkImageDecoder a long time ago.

The simplest interface to use is SkImage::MakeFromEncoded.

On Wed, Nov 23, 2022 at 3:56 AM lemon Miao <miaot...@gmail.com> wrote:
I dont' find SkImageDecoder class, I don't know how to read jpg or png from file?

--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/skia-discuss/1faa81de-2422-4056-a65c-6f60469024dan%40googlegroups.com.


--

 •  Leon Scroggins

 •  scr...@google.com


Reply all
Reply to author
Forward
0 new messages