BrightIdeasSoftware.Utilities.ImagelistAdd.AddFromImage C# (CSharp) Метод

AddFromImage() публичный статический Метод

Adds an alphablended icon to an existing imagelist from an Icon object.
public static AddFromImage ( Icon sourceIcon, ImageList destinationImagelist ) : void
sourceIcon System.Drawing.Icon The Icon object to add to the imagelist
destinationImagelist System.Windows.Forms.ImageList An existing imagelist to add the icon to.
Результат void
        public static void AddFromImage(Icon sourceIcon, ImageList destinationImagelist)
        {
            destinationImagelist.Images.Add(Icon.FromHandle(sourceIcon.Handle));
        }

Same methods

ImagelistAdd::AddFromImage ( Image sourceImage, ImageList destinationImagelist ) : void