Exemple #1
0
 public ECF(int w, int h, CanvasContext o)
 {
     this.o             = o;
     drawingFieldWidth  = w;
     drawingFieldHeight = h;
     clearVectorDistMap(drawingFieldWidth, drawingFieldHeight);
     initLocalVariables();
 }
Exemple #2
0
        void clearRaster(RasterBorder rasterBorder, List <List <Point> > vectorDistMap, CanvasContext o)
        {
            int i, j,
                max_i, max_j;

            for (i = rasterBorder.miny, max_i = rasterBorder.maxy; i < max_i; i += 1)
            {
                for (j = rasterBorder.minx, max_j = rasterBorder.maxx; j < max_j; j += 1)
                {
                    if (i > 0 && j > 0 && vectorDistMap.Count > i && vectorDistMap [i].Count > j)
                    {
                        vectorDistMap [i] [j]     = new Point();
                        vectorDistMap [i] [j].nil = true;
                    }
                }
            }

            rasterBorder.minx = o.width;
            rasterBorder.maxx = 0;

            rasterBorder.miny = o.height;
            rasterBorder.maxy = 0;
        }