Ejemplo n.º 1
0
        public static Value lib_imageresources_nativeImageDataInit(VmContext vm, Value[] args)
        {
            ObjectInstance objInstance1 = (ObjectInstance)args[0].internalValue;

            object[] nd     = new object[4];
            int      width  = (int)args[1].internalValue;
            int      height = (int)args[2].internalValue;

            nd[0] = ImageResourceHelper.GenerateNativeBitmapOfSize(width, height);
            nd[1] = width;
            nd[2] = height;
            nd[3] = null;
            objInstance1.nativeData = nd;
            return(vm.globalNull);
        }