Beispiel #1
0
 protected override int measureRawSize(LayoutingType lt)
 {
     if (_pic == null)
         _pic = "#Crow.Images.Icons.IconAlerte.svg";
     //TODO:take scalling in account
     if (lt == LayoutingType.Width)
         return _pic.Dimensions.Width + 2 * Margin;
     else
         return _pic.Dimensions.Height + 2 * Margin;
 }
Beispiel #2
0
        public void LoadImage(string path)
        {
            if (path.EndsWith (".svg", true, System.Globalization.CultureInfo.InvariantCulture))
                _pic = new SvgPicture ();
            else
                _pic = new BmpPicture ();

            _pic.LoadImage (path);
            RegisterForGraphicUpdate ();
        }