Exemplo n.º 1
0
        /// <summary>
        /// Gets the Icon Image
        /// </summary>
        /// <param name="menuIcon"> Icon object to be displayed as image.</param>
        /// <returns>
        /// stdole.IPictureDisp type object.
        /// </returns>
        internal static stdole.IPictureDisp GetImage(Icon menuIcon)
        {
            stdole.IPictureDisp tempImage = null;
            ImageList           imageList = new ImageList();

            imageList.Images.Add(menuIcon);
            tempImage = ConvertImage.Convert(imageList.Images[0]);
            return(tempImage);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Gets the Icon Image
 /// </summary>
 /// <param name="menuIcon"> Icon object to be displayed as image. </param>
 /// <returns> stdole.IPictureDisp type object. </returns>
 internal static stdole.IPictureDisp GetImage(Bitmap menuIcon)
 {
     stdole.IPictureDisp tempImage = null;
     tempImage = ConvertImage.Convert(menuIcon);
     return(tempImage);
 }