setRegionDecoderClass

public final void setRegionDecoderClass(Class<? extends ImageRegionDecoder> regionDecoderClass)

Swap the default region decoder implementation for one of your own. You must do this before setting the image file or asset, and you cannot use a custom decoder when using layout XML to set an asset name. Your class must have a public default constructor.

Parameters

regionDecoderClass

The ImageRegionDecoder implementation to use.