Esempio n. 1
0
 protected virtual void PaintItem(Graphics g, DockItem item)
 {
     if (item != null)
     {
         if (item.Scale == 1.0f)
         {
             if (item.Alpha == 255)
             {
                 BitmapPainter.DrawImageUnscaled(item.Icon, g, item.X, item.Y);
             }
             else
             {
                 BitmapPainter.DrawImageUnscaled(item.Icon, g, item.X, item.Y, item.Alpha);
             }
         }
         else
         {
             if (item.Alpha == 255)
             {
                 BitmapPainter.DrawImageScaled(item.Icon, g, item.X, item.Y, item.PaintWidth, item.PaintHeight);
             }
             else
             {
                 BitmapPainter.DrawImageScaled(item.Icon, g, item.X, item.Y, item.PaintWidth, item.PaintHeight, item.Alpha);
             }
         }
     }
 }