Example usage for android.graphics Picture createFromStream

List of usage examples for android.graphics Picture createFromStream

Introduction

In this page you can find the example usage for android.graphics Picture createFromStream.

Prototype

@Deprecated
public static Picture createFromStream(InputStream stream) 

Source Link

Document

Create a new picture (already recorded) from the data in the stream.

Usage

From source file:Main.java

public static Picture getPicture(final Class<? extends Object> clazz, String path) {
    InputStream is = clazz.getClassLoader().getResourceAsStream(path);
    return Picture.createFromStream(is);
}