mirror of https://github.com/NekoX-Dev/NekoX.git
25 lines
543 B
Java
25 lines
543 B
Java
package org.telegram.messenger;
|
|
|
|
import android.graphics.Bitmap;
|
|
import android.graphics.drawable.BitmapDrawable;
|
|
|
|
public class ExtendedBitmapDrawable extends BitmapDrawable {
|
|
|
|
private boolean canInvert;
|
|
private int orientation;
|
|
|
|
public ExtendedBitmapDrawable(Bitmap bitmap, boolean invert, int orient) {
|
|
super(bitmap);
|
|
canInvert = invert;
|
|
orientation = orient;
|
|
}
|
|
|
|
public boolean isCanInvert() {
|
|
return canInvert;
|
|
}
|
|
|
|
public int getOrientation() {
|
|
return orientation;
|
|
}
|
|
}
|