如何在另一个UIImage上绘制图像以创建一个UIImage

时间:2016-07-08 05:07:18

标签: ios swift uiimage

我试图做这个确切的例子:Draw another image on a UIImage但是在Swift中。

我非常感谢任何解释或正确方向的任何帮助。

1 个答案:

答案 0 :(得分:2)

这是与文章相同的代码,但很快希望这适合你:

        static IntPtr id_getEventTypes;
    public override unsafe global::System.Collections.ICollection EventTypes {
        // Metadata.xml XPath method reference: path="/api/package[@name='com.kontakt.sdk.android.ble.configuration.scan']/class[@name='EddystoneScanContext']/method[@name='getEventTypes' and count(parameter)=0]"
        [Register ("getEventTypes", "()Ljava/util/Collection;", "GetGetEventTypesHandler")]
        get {
            if (id_getEventTypes == IntPtr.Zero)
                id_getEventTypes = JNIEnv.GetMethodID (class_ref, "getEventTypes", "()Ljava/util/Collection;");
            try {
                return global::Android.Runtime.JavaCollection.FromJniHandle (JNIEnv.CallObjectMethod  (Handle, id_getEventTypes), JniHandleOwnership.TransferLocalRef);
            } finally {
            }
        }
    }