Package org.robolectric.shadows
Class ShadowBitmapRegionDecoder
java.lang.Object
org.robolectric.shadows.ShadowBitmapRegionDecoder
@Implements(android.graphics.BitmapRegionDecoder.class) public class ShadowBitmapRegionDecoder extends Object
-
Constructor Summary
Constructors Constructor Description ShadowBitmapRegionDecoder()
-
Method Summary
Modifier and Type Method Description protected Bitmap
decodeRegion(Rect rect, BitmapFactory.Options options)
protected int
getHeight()
protected int
getWidth()
protected static BitmapRegionDecoder
newInstance(byte[] data, int offset, int length, boolean isShareable)
protected static BitmapRegionDecoder
newInstance(FileDescriptor fd, boolean isShareable)
protected static BitmapRegionDecoder
newInstance(InputStream is, boolean isShareable)
protected static BitmapRegionDecoder
newInstance(String pathName, boolean isShareable)
-
Constructor Details
-
ShadowBitmapRegionDecoder
public ShadowBitmapRegionDecoder()
-
-
Method Details
-
newInstance
@Implementation protected static BitmapRegionDecoder newInstance(byte[] data, int offset, int length, boolean isShareable) throws IOException- Throws:
IOException
-
newInstance
@Implementation protected static BitmapRegionDecoder newInstance(FileDescriptor fd, boolean isShareable) throws IOException- Throws:
IOException
-
newInstance
@Implementation protected static BitmapRegionDecoder newInstance(InputStream is, boolean isShareable) throws IOException- Throws:
IOException
-
newInstance
@Implementation protected static BitmapRegionDecoder newInstance(String pathName, boolean isShareable) throws IOException- Throws:
IOException
-
getWidth
-
getHeight
-
decodeRegion
-