Esempio n. 1
0
        public static IntPtr CreateCursor(Bitmap xor, Bitmap and, int xHotspot, int yHotspot)
        {
            ImageConverter ic = new ImageConverter();

            byte[] bfrXor = (byte[])ic.ConvertTo(xor, typeof(byte[]));
            byte[] bfrAnd = (byte[])ic.ConvertTo(and, typeof(byte[]));
            return(Api_User32.CreateCursor(IntPtr.Zero, xHotspot, yHotspot, and.Width, and.Height, bfrAnd, bfrXor));
        }