コード例 #1
0
ファイル: NativeSession.cs プロジェクト: Dkrinker/torshify
        public IImage GetImage(string id)
        {
            AssertHandle();

            if (id == null)
            {
                throw new ArgumentNullException("id");
            }

            if (id.Length != 40)
            {
                throw new ArgumentException("invalid id", "id");
            }

            var image = new NativeImage(this, id);

            image.Initialize();
            return(image);
        }
コード例 #2
0
ファイル: Spotify.Image.cs プロジェクト: kms/torshify
 internal static extern void sp_image_add_load_callback(IntPtr imagePtr, NativeImage.ImageLoadedCallback loadedCallback, IntPtr userdataPtr);
コード例 #3
0
ファイル: NativeSession.cs プロジェクト: sekotin/torshify
        public IImage GetImage(string id)
        {
            AssertHandle();

            if (id == null)
            {
                throw new ArgumentNullException("id");
            }

            if (id.Length != 40)
            {
                throw new ArgumentException("invalid id", "id");
            }

            var image = new NativeImage(this, id);
            image.Initialize();
            return image;
        }
コード例 #4
0
ファイル: Spotify.Image.cs プロジェクト: jmazouri/Picofy
 internal static extern Error sp_image_remove_load_callback(IntPtr imagePtr, NativeImage.ImageLoadedCallback loadedCallback, IntPtr userdataPtr);