Beispiel #1
0
        public static DMDFrame DMDFrameCreate(DMDSize size)
        {
            DMDFrame result = new DMDFrame();

            result.buffer = new byte[size.width * size.height];
            result.size   = size;
            return(result);
        }
Beispiel #2
0
        public static DMDSize DMDSizeMake(int w, int h)
        {
            DMDSize s = new DMDSize()
            {
                width = w, height = h
            };

            return(s);
        }