public RenderManagerMainField(int wCount, int hCount, double wPixels, double hPixels)
        {
            descriptorsPrev = new int[wCount, hCount];
            widthCount      = wCount;
            heightCount     = hCount;
            widthPixels     = wPixels;
            heightPixels    = hPixels;
            CalcFildConsts();

            btmDefFood    = DynamicResources.GetInstance().ImageSource_DefFood;
            btmDeadCell   = DynamicResources.GetInstance().ImageSource_DeadCell;
            btmPoison     = DynamicResources.GetInstance().ImageSource_Poison;
            btmBorder     = DynamicResources.GetInstance().ImageSource_Border;
            btmDefFood    = GraphicsHelper.ResizeImage(btmDefFood, (int)cubeLineSize_Optimized, (int)cubeLineSize_Optimized);
            btmDeadCell   = GraphicsHelper.ResizeImage(btmDeadCell, (int)cubeLineSize_Optimized, (int)cubeLineSize_Optimized);
            btmPoison     = GraphicsHelper.ResizeImage(btmPoison, (int)cubeLineSize_Optimized, (int)cubeLineSize_Optimized);
            btmBorder     = GraphicsHelper.ResizeImage(btmBorder, (int)cubeLineSize_Optimized, (int)cubeLineSize_Optimized);
            btmBackground = RenderEmptyField();

            btmDefFood.Freeze();
            btmDeadCell.Freeze();
            btmPoison.Freeze();
            btmBorder.Freeze();
            btmBackground.Freeze();
        }
Exemple #2
0
 public WindowMainMenu()
 {
     InitializeComponent();
     imageLogo.Source = DynamicResources.GetInstance().ImageSource_Logo;
 }