--
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/706a5def-00b1-4a4d-adf9-b365bb937ef6n%40googlegroups.com.
• Leon Scroggins
I have never worked with SkCodec before. I am getting a runtime error in this code:sk_sp<SkData> skdata = SkData::MakeWithCopy(data, data_size);
if(skdata != nullptr)
{
std::unique_ptr<SkCodec> codec = SkCodec::MakeFromData(std::move(skdata)); // data is a grayscale PNG file
if(codec != nullptr)
{
SkBitmap bitmap;
SkImageInfo info = codec->getInfo().makeColorType(kAlpha_8_SkColorType);
if(bitmap.tryAllocPixels(info))
{
To view this discussion on the web visit https://groups.google.com/d/msgid/skia-discuss/ec4660ef-06dd-4a03-b5cf-6479f7c20872n%40googlegroups.com.
• Leon Scroggins