Ejemplo n.º 1
0
        public virtual unsafe void AddFilter(global::JP.CO.Cyberagent.Android.Gpuimage.GPUImageFilter aFilter)
        {
            if (id_addFilter_Ljp_co_cyberagent_android_gpuimage_GPUImageFilter_ == IntPtr.Zero)
            {
                id_addFilter_Ljp_co_cyberagent_android_gpuimage_GPUImageFilter_ = JNIEnv.GetMethodID(class_ref, "addFilter", "(Ljp/co/cyberagent/android/gpuimage/GPUImageFilter;)V");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(aFilter);

                if (((object)this).GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_addFilter_Ljp_co_cyberagent_android_gpuimage_GPUImageFilter_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "addFilter", "(Ljp/co/cyberagent/android/gpuimage/GPUImageFilter;)V"), __args);
                }
            } finally {
            }
        }
Ejemplo n.º 2
0
 static void n_AddFilter_Ljp_co_cyberagent_android_gpuimage_GPUImageFilter_(IntPtr jnienv, IntPtr native__this, IntPtr native_aFilter)
 {
     global::JP.CO.Cyberagent.Android.Gpuimage.GPUImageFilterGroup __this  = global::Java.Lang.Object.GetObject <global::JP.CO.Cyberagent.Android.Gpuimage.GPUImageFilterGroup> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::JP.CO.Cyberagent.Android.Gpuimage.GPUImageFilter      aFilter = global::Java.Lang.Object.GetObject <global::JP.CO.Cyberagent.Android.Gpuimage.GPUImageFilter> (native_aFilter, JniHandleOwnership.DoNotTransfer);
     __this.AddFilter(aFilter);
 }