Lines Matching defs:hasAlpha
558 b.setAlphaAndPremultiplied(hasAlpha(), mIsPremultiplied);
708 bitmap = createBitmap(neww, newh, newConfig, source.hasAlpha());
720 transformed || source.hasAlpha());
735 bitmap.setAlphaAndPremultiplied(source.hasAlpha(), source.mIsPremultiplied);
780 * @param hasAlpha If the bitmap is ARGB_8888 this flag can be used to mark the
786 private static Bitmap createBitmap(int width, int height, Config config, boolean hasAlpha) {
787 return createBitmap(null, width, height, config, hasAlpha);
799 * @param hasAlpha If the bitmap is ARGB_8888 this flag can be used to mark the
806 Config config, boolean hasAlpha) {
814 bm.setHasAlpha(hasAlpha);
815 if (config == Config.ARGB_8888 && !hasAlpha) {
1015 * <p>This method only returns true if {@link #hasAlpha()} returns true.
1030 return mIsPremultiplied && getConfig() != Config.RGB_565 && hasAlpha();
1043 * channel, or if {@link #hasAlpha()} returns false.</p>
1055 nativeSetAlphaAndPremultiplied(mNativeBitmap, hasAlpha(), premultiplied);
1059 private final void setAlphaAndPremultiplied(boolean hasAlpha, boolean premultiplied) {
1061 nativeSetAlphaAndPremultiplied(mNativeBitmap, hasAlpha, premultiplied);
1203 * known that all of its pixels are opaque. In this case hasAlpha() will
1207 public final boolean hasAlpha() {
1221 public void setHasAlpha(boolean hasAlpha) {
1222 nativeSetAlphaAndPremultiplied(mNativeBitmap, hasAlpha, mIsPremultiplied);
1627 private static native void nativeSetAlphaAndPremultiplied(int nBitmap, boolean hasAlpha,