예제 #1
0
            public ImageInstance(SkryptEngine engine, int width, int height) : base(engine)
            {
                bitMap = new Bitmap(width, height);

                CreateProperty("Width", engine.CreateNumber(width));
                CreateProperty("Height", engine.CreateNumber(height));
            }
 public static NumberInstance ToNumberInstance(SkryptEngine engine, double val) => engine.CreateNumber(val);