sk_image_t* sk_image_new_from_encoded(const sk_data_t* cdata, const sk_irect_t* subset) { return ToImage(SkImage::MakeFromEncoded(sk_ref_sp(AsData(cdata)), reinterpret_cast<const SkIRect*>(subset)).release()); }
sk_image_t* sk_image_new_from_encoded(const sk_data_t* cdata, const sk_irect_t* subset) { return ToImage(SkImage::NewFromEncoded(AsData(cdata), reinterpret_cast<const SkIRect*>(subset))); }
Image RichObjectType::ToImage(const Value& data, Size sz) const { return ToImage(data, sz, NULL); }