toOfflineImage

Converts a byte array to an offline image.

Return

OfflineImage - The offline image representation of the byte array.


将给定的 Resource 转换为 OfflineImage。 会在适当的情况下转化为一些平台特供的类型, 并在其他情况下转化为全平台实现 OfflineByteArrayImageSimpleOfflineResourceImage

Return

OfflineImage object representing the converted Resource.

See also