java类android.graphics.AvoidXfermode.Mode的实例源码

ColorSwapBitmapTextureAtlasSourceDecorator.java 文件源码 项目:AndroidCourses 阅读 22 收藏 0 点赞 0 评论 0
public ColorSwapBitmapTextureAtlasSourceDecorator(final IBitmapTextureAtlasSource pBitmapTextureAtlasSource, final IBitmapTextureAtlasSourceDecoratorShape pBitmapTextureAtlasSourceDecoratorShape, final int pColorKeyColorARGBPackedInt, final int pTolerance, final int pColorSwapColorARGBPackedInt, final TextureAtlasSourceDecoratorOptions pTextureAtlasSourceDecoratorOptions) {
    super(pBitmapTextureAtlasSource, pBitmapTextureAtlasSourceDecoratorShape, pTextureAtlasSourceDecoratorOptions);

    this.mColorKeyColorARGBPackedInt = pColorKeyColorARGBPackedInt;
    this.mTolerance = pTolerance;
    this.mColorSwapColorARGBPackedInt = pColorSwapColorARGBPackedInt;
    this.mPaint.setXfermode(new AvoidXfermode(pColorKeyColorARGBPackedInt, pTolerance, Mode.TARGET));
    this.mPaint.setColor(pColorSwapColorARGBPackedInt);

    if (SystemUtils.isAndroidVersionOrHigher(Build.VERSION_CODES.JELLY_BEAN)) {
        Debug.w("The class " + ColorSwapBitmapTextureAtlasSourceDecorator.class.getSimpleName() + " is deprecated for Android API Level: '" + Build.VERSION_CODES.JELLY_BEAN + "' and higher, since the class " + AvoidXfermode.class.getSimpleName() + " is deprecated since then.");
    }
}
ColorSwapBitmapTextureAtlasSourceDecorator.java 文件源码 项目:AndroidCourses 阅读 25 收藏 0 点赞 0 评论 0
public ColorSwapBitmapTextureAtlasSourceDecorator(final IBitmapTextureAtlasSource pBitmapTextureAtlasSource, final IBitmapTextureAtlasSourceDecoratorShape pBitmapTextureAtlasSourceDecoratorShape, final int pColorKeyColorARGBPackedInt, final int pTolerance, final int pColorSwapColorARGBPackedInt, final TextureAtlasSourceDecoratorOptions pTextureAtlasSourceDecoratorOptions) {
    super(pBitmapTextureAtlasSource, pBitmapTextureAtlasSourceDecoratorShape, pTextureAtlasSourceDecoratorOptions);

    this.mColorKeyColorARGBPackedInt = pColorKeyColorARGBPackedInt;
    this.mTolerance = pTolerance;
    this.mColorSwapColorARGBPackedInt = pColorSwapColorARGBPackedInt;
    this.mPaint.setXfermode(new AvoidXfermode(pColorKeyColorARGBPackedInt, pTolerance, Mode.TARGET));
    this.mPaint.setColor(pColorSwapColorARGBPackedInt);

    if (SystemUtils.isAndroidVersionOrHigher(Build.VERSION_CODES.JELLY_BEAN)) {
        Debug.w("The class " + ColorSwapBitmapTextureAtlasSourceDecorator.class.getSimpleName() + " is deprecated for Android API Level: '" + Build.VERSION_CODES.JELLY_BEAN + "' and higher, since the class " + AvoidXfermode.class.getSimpleName() + " is deprecated since then.");
    }
}
ColorSwapBitmapTextureAtlasSourceDecorator.java 文件源码 项目:ClassicF1 阅读 25 收藏 0 点赞 0 评论 0
public ColorSwapBitmapTextureAtlasSourceDecorator(final IBitmapTextureAtlasSource pBitmapTextureAtlasSource, final IBitmapTextureAtlasSourceDecoratorShape pBitmapTextureAtlasSourceDecoratorShape, final int pColorKeyColorARGBPackedInt, final int pTolerance, final int pColorSwapColorARGBPackedInt, final TextureAtlasSourceDecoratorOptions pTextureAtlasSourceDecoratorOptions) {
    super(pBitmapTextureAtlasSource, pBitmapTextureAtlasSourceDecoratorShape, pTextureAtlasSourceDecoratorOptions);

    this.mColorKeyColorARGBPackedInt = pColorKeyColorARGBPackedInt;
    this.mTolerance = pTolerance;
    this.mColorSwapColorARGBPackedInt = pColorSwapColorARGBPackedInt;
    this.mPaint.setXfermode(new AvoidXfermode(pColorKeyColorARGBPackedInt, pTolerance, Mode.TARGET));
    this.mPaint.setColor(pColorSwapColorARGBPackedInt);
}
ColorSwapBitmapTextureAtlasSourceDecorator.java 文件源码 项目:tilt-game-android 阅读 28 收藏 0 点赞 0 评论 0
public ColorSwapBitmapTextureAtlasSourceDecorator(final IBitmapTextureAtlasSource pBitmapTextureAtlasSource, final IBitmapTextureAtlasSourceDecoratorShape pBitmapTextureAtlasSourceDecoratorShape, final int pColorKeyColorARGBPackedInt, final int pTolerance, final int pColorSwapColorARGBPackedInt, final TextureAtlasSourceDecoratorOptions pTextureAtlasSourceDecoratorOptions) {
    super(pBitmapTextureAtlasSource, pBitmapTextureAtlasSourceDecoratorShape, pTextureAtlasSourceDecoratorOptions);

    this.mColorKeyColorARGBPackedInt = pColorKeyColorARGBPackedInt;
    this.mTolerance = pTolerance;
    this.mColorSwapColorARGBPackedInt = pColorSwapColorARGBPackedInt;
    this.mPaint.setXfermode(new AvoidXfermode(pColorKeyColorARGBPackedInt, pTolerance, Mode.TARGET));
    this.mPaint.setColor(pColorSwapColorARGBPackedInt);

    if (SystemUtils.isAndroidVersionOrHigher(Build.VERSION_CODES.JELLY_BEAN)) {
        Debug.w("The class " + ColorSwapBitmapTextureAtlasSourceDecorator.class.getSimpleName() + " is deprecated for Android API Level: '" + Build.VERSION_CODES.JELLY_BEAN + "' and higher, since the class " + AvoidXfermode.class.getSimpleName() + " is deprecated since then.");
    }
}
ColorSwapTextureSourceDecorator.java 文件源码 项目:itmarry 阅读 29 收藏 0 点赞 0 评论 0
public ColorSwapTextureSourceDecorator(final ITextureSource pTextureSource, final ITextureSourceDecoratorShape pTextureSourceDecoratorShape, final int pColorKeyColor, final int pTolerance, final int pColorSwapColor, final TextureSourceDecoratorOptions pTextureSourceDecoratorOptions) {
    super(pTextureSource, pTextureSourceDecoratorShape, pTextureSourceDecoratorOptions);
    this.mColorKeyColor = pColorKeyColor;
    this.mTolerance = pTolerance;
    this.mColorSwapColor = pColorSwapColor;
    this.mPaint.setXfermode(new AvoidXfermode(pColorKeyColor, pTolerance, Mode.TARGET));
    this.mPaint.setColor(pColorSwapColor);
}
ColorSwapBitmapTextureAtlasSourceDecorator.java 文件源码 项目:30-android-libraries-in-30-days 阅读 29 收藏 0 点赞 0 评论 0
public ColorSwapBitmapTextureAtlasSourceDecorator(final IBitmapTextureAtlasSource pBitmapTextureAtlasSource, final IBitmapTextureAtlasSourceDecoratorShape pBitmapTextureAtlasSourceDecoratorShape, final int pColorKeyColorARGBPackedInt, final int pTolerance, final int pColorSwapColorARGBPackedInt, final TextureAtlasSourceDecoratorOptions pTextureAtlasSourceDecoratorOptions) {
    super(pBitmapTextureAtlasSource, pBitmapTextureAtlasSourceDecoratorShape, pTextureAtlasSourceDecoratorOptions);

    this.mColorKeyColorARGBPackedInt = pColorKeyColorARGBPackedInt;
    this.mTolerance = pTolerance;
    this.mColorSwapColorARGBPackedInt = pColorSwapColorARGBPackedInt;
    this.mPaint.setXfermode(new AvoidXfermode(pColorKeyColorARGBPackedInt, pTolerance, Mode.TARGET));
    this.mPaint.setColor(pColorSwapColorARGBPackedInt);
}
ColorSwapBitmapTextureAtlasSourceDecorator.java 文件源码 项目:Killbots 阅读 25 收藏 0 点赞 0 评论 0
public ColorSwapBitmapTextureAtlasSourceDecorator(final IBitmapTextureAtlasSource pBitmapTextureAtlasSource, final IBitmapTextureAtlasSourceDecoratorShape pBitmapTextureAtlasSourceDecoratorShape, final int pColorKeyColorARGBPackedInt, final int pTolerance, final int pColorSwapColorARGBPackedInt, final TextureAtlasSourceDecoratorOptions pTextureAtlasSourceDecoratorOptions) {
    super(pBitmapTextureAtlasSource, pBitmapTextureAtlasSourceDecoratorShape, pTextureAtlasSourceDecoratorOptions);

    this.mColorKeyColorARGBPackedInt = pColorKeyColorARGBPackedInt;
    this.mTolerance = pTolerance;
    this.mColorSwapColorARGBPackedInt = pColorSwapColorARGBPackedInt;
    this.mPaint.setXfermode(new AvoidXfermode(pColorKeyColorARGBPackedInt, pTolerance, Mode.TARGET));
    this.mPaint.setColor(pColorSwapColorARGBPackedInt);
}
ColorSwapBitmapTextureAtlasSourceDecorator.java 文件源码 项目:NationSoccer 阅读 23 收藏 0 点赞 0 评论 0
public ColorSwapBitmapTextureAtlasSourceDecorator(final IBitmapTextureAtlasSource pBitmapTextureAtlasSource, final IBitmapTextureAtlasSourceDecoratorShape pBitmapTextureAtlasSourceDecoratorShape, final int pColorKeyColorARGBPackedInt, final int pTolerance, final int pColorSwapColorARGBPackedInt, final TextureAtlasSourceDecoratorOptions pTextureAtlasSourceDecoratorOptions) {
    super(pBitmapTextureAtlasSource, pBitmapTextureAtlasSourceDecoratorShape, pTextureAtlasSourceDecoratorOptions);

    this.mColorKeyColorARGBPackedInt = pColorKeyColorARGBPackedInt;
    this.mTolerance = pTolerance;
    this.mColorSwapColorARGBPackedInt = pColorSwapColorARGBPackedInt;
    this.mPaint.setXfermode(new AvoidXfermode(pColorKeyColorARGBPackedInt, pTolerance, Mode.TARGET));
    this.mPaint.setColor(pColorSwapColorARGBPackedInt);

    if (SystemUtils.isAndroidVersionOrHigher(Build.VERSION_CODES.JELLY_BEAN)) {
        Debug.w("The class " + ColorSwapBitmapTextureAtlasSourceDecorator.class.getSimpleName() + " is deprecated for Android API Level: '" + Build.VERSION_CODES.JELLY_BEAN + "' and higher, since the class " + AvoidXfermode.class.getSimpleName() + " is deprecated since then.");
    }
}


问题


面经


文章

微信
公众号

扫码关注公众号