Java 类android.graphics.AvoidXfermode.Mode 实例源码

项目:AndroidCourses    文件:ColorSwapBitmapTextureAtlasSourceDecorator.java   
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.");
    }
}
项目:AndroidCourses    文件:ColorSwapBitmapTextureAtlasSourceDecorator.java   
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.");
    }
}
项目:ClassicF1    文件:ColorSwapBitmapTextureAtlasSourceDecorator.java   
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);
}
项目:tilt-game-android    文件:ColorSwapBitmapTextureAtlasSourceDecorator.java   
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.");
    }
}
项目:itmarry    文件:ColorSwapTextureSourceDecorator.java   
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);
}
项目:30-android-libraries-in-30-days    文件:ColorSwapBitmapTextureAtlasSourceDecorator.java   
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);
}
项目:Killbots    文件:ColorSwapBitmapTextureAtlasSourceDecorator.java   
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);
}
项目:NationSoccer    文件:ColorSwapBitmapTextureAtlasSourceDecorator.java   
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.");
    }
}