Exemplo n.º 1
0
 /// <summary>Create a new compose shader, given shaders A, B, and a combining PorterDuff mode.
 ///     </summary>
 /// <remarks>
 /// Create a new compose shader, given shaders A, B, and a combining PorterDuff mode.
 /// When the mode is applied, it will be given the result from shader A as its
 /// "dst", and the result from shader B as its "src".
 /// </remarks>
 /// <param name="shaderA">The colors from this shader are seen as the "dst" by the mode
 ///     </param>
 /// <param name="shaderB">The colors from this shader are seen as the "src" by the mode
 ///     </param>
 /// <param name="mode">The PorterDuff mode that combines the colors from the two shaders.
 ///     </param>
 public ComposeShader(android.graphics.Shader shaderA, android.graphics.Shader shaderB
                      , android.graphics.PorterDuff.Mode mode)
 {
     mShaderA        = shaderA;
     mShaderB        = shaderB;
     native_instance = nativeCreate2(shaderA.native_instance, shaderB.native_instance,
                                     (int)mode);
     native_shader = nativePostCreate2(native_instance, shaderA.native_shader, shaderB
                                       .native_shader, (int)mode);
 }
Exemplo n.º 2
0
 public virtual void setColorFilter(int arg0, android.graphics.PorterDuff.Mode arg1)
 {
     global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
     if (!IsClrObject)
     {
         @__env.CallVoidMethod(this.JvmHandle, global::android.widget.ImageView._setColorFilter11455, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1));
     }
     else
     {
         @__env.CallNonVirtualVoidMethod(this.JvmHandle, global::android.widget.ImageView.staticClass, global::android.widget.ImageView._setColorFilter11455, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1));
     }
 }
Exemplo n.º 3
0
 /// <summary>Create a new compose shader, given shaders A, B, and a combining mode.</summary>
 /// <remarks>
 /// Create a new compose shader, given shaders A, B, and a combining mode.
 /// When the mode is applied, it will be given the result from shader A as its
 /// "dst", and the result from shader B as its "src".
 /// </remarks>
 /// <param name="shaderA">The colors from this shader are seen as the "dst" by the mode
 ///     </param>
 /// <param name="shaderB">The colors from this shader are seen as the "src" by the mode
 ///     </param>
 /// <param name="mode">
 /// The mode that combines the colors from the two shaders. If mode
 /// is null, then SRC_OVER is assumed.
 /// </param>
 public ComposeShader(android.graphics.Shader shaderA, android.graphics.Shader shaderB
                      , android.graphics.Xfermode mode)
 {
     mShaderA        = shaderA;
     mShaderB        = shaderB;
     native_instance = nativeCreate1(shaderA.native_instance, shaderB.native_instance,
                                     (mode != null) ? mode.native_instance : null);
     if (mode is android.graphics.PorterDuffXfermode)
     {
         android.graphics.PorterDuff.Mode pdMode = ((android.graphics.PorterDuffXfermode)mode
                                                    ).mode;
         native_shader = nativePostCreate2(native_instance, shaderA.native_shader, shaderB
                                           .native_shader, pdMode != null ? (int)pdMode : 0);
     }
     else
     {
         native_shader = nativePostCreate1(native_instance, shaderA.native_shader, shaderB
                                           .native_shader, mode != null ? mode.native_instance : null);
     }
 }
Exemplo n.º 4
0
 public PorterDuffColorFilter(int arg0, android.graphics.PorterDuff.Mode arg1)  : base(global::MonoJavaBridge.JNIEnv.ThreadEnv)
 {
     global::MonoJavaBridge.JNIEnv         @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
     global::MonoJavaBridge.JniLocalHandle handle = @__env.NewObject(android.graphics.PorterDuffColorFilter.staticClass, global::android.graphics.PorterDuffColorFilter._PorterDuffColorFilter3662, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1));
     Init(@__env, handle);
 }
Exemplo n.º 5
0
 public PorterDuffXfermode(android.graphics.PorterDuff.Mode arg0)  : base(global::MonoJavaBridge.JNIEnv.ThreadEnv)
 {
     global::MonoJavaBridge.JNIEnv         @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
     global::MonoJavaBridge.JniLocalHandle handle = @__env.NewObject(android.graphics.PorterDuffXfermode.staticClass, global::android.graphics.PorterDuffXfermode._PorterDuffXfermode3663, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0));
     Init(@__env, handle);
 }
Exemplo n.º 6
0
 /// <summary>Set a tinting option for the image.</summary>
 /// <remarks>Set a tinting option for the image.</remarks>
 /// <param name="color">Color tint to apply.</param>
 /// <param name="mode">
 /// How to apply the color.  The standard mode is
 /// <see cref="android.graphics.PorterDuff.Mode.SRC_ATOP">android.graphics.PorterDuff.Mode.SRC_ATOP
 ///     </see>
 /// </param>
 /// <attr>ref android.R.styleable#ImageView_tint</attr>
 public void setColorFilter(int color, android.graphics.PorterDuff.Mode mode)
 {
     setColorFilter(new android.graphics.PorterDuffColorFilter(color, mode));
 }
Exemplo n.º 7
0
 public override void drawColor(int color, android.graphics.PorterDuff.Mode mode)
 {
     throw new System.NotImplementedException();
 }
Exemplo n.º 8
0
 public virtual void setDrawableParameters(int viewId, bool targetBackground, int
                                           alpha, int colorFilter, android.graphics.PorterDuff.Mode mode, int level)
 {
     throw new System.NotImplementedException();
 }
Exemplo n.º 9
0
 public SetDrawableParameters(RemoteViews _enclosing, int id, bool targetBackground
                              , int alpha, int colorFilter, android.graphics.PorterDuff.Mode mode, int level)
 {
     throw new System.NotImplementedException();
 }
Exemplo n.º 10
0
 /// <summary>Create an xfermode that uses the specified porter-duff mode.</summary>
 /// <remarks>Create an xfermode that uses the specified porter-duff mode.</remarks>
 /// <param name="mode">The porter-duff mode that is applied</param>
 public PorterDuffXfermode(android.graphics.PorterDuff.Mode mode)
 {
     this.mode       = mode;
     native_instance = nativeCreateXfermode((int)mode);
 }
Exemplo n.º 11
0
		/// <summary>Create an xfermode that uses the specified porter-duff mode.</summary>
		/// <remarks>Create an xfermode that uses the specified porter-duff mode.</remarks>
		/// <param name="mode">The porter-duff mode that is applied</param>
		public PorterDuffXfermode(android.graphics.PorterDuff.Mode mode)
		{
			this.mode = mode;
			native_instance = nativeCreateXfermode((int)mode);
		}
Exemplo n.º 12
0
 public ComposeShader(android.graphics.Shader arg0, android.graphics.Shader arg1, android.graphics.PorterDuff.Mode arg2)  : base(global::MonoJavaBridge.JNIEnv.ThreadEnv)
 {
     global::MonoJavaBridge.JNIEnv         @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
     global::MonoJavaBridge.JniLocalHandle handle = @__env.NewObject(android.graphics.ComposeShader.staticClass, global::android.graphics.ComposeShader._ComposeShader3304, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg2));
     Init(@__env, handle);
 }
Exemplo n.º 13
0
 /// <summary>Create a colorfilter that uses the specified color and porter-duff mode.
 ///     </summary>
 /// <remarks>Create a colorfilter that uses the specified color and porter-duff mode.
 ///     </remarks>
 /// <param name="srcColor">
 /// The source color used with the specified
 /// porter-duff mode
 /// </param>
 /// <param name="mode">The porter-duff mode that is applied</param>
 public PorterDuffColorFilter(int srcColor, android.graphics.PorterDuff.Mode mode)
 {
     native_instance   = native_CreatePorterDuffFilter(srcColor, (int)mode);
     nativeColorFilter = nCreatePorterDuffFilter(native_instance, srcColor, (int)mode);
 }