Exemple #1
0
        void OnExportImageClick(object sender, ItemClickEventArgs e)
        {
            BarExportToImageItem item = e.Item as BarExportToImageItem;

            if (item == null)
            {
                return;
            }
            DemosInfo.ExportToImage(item.ImageCodecInfo, item.ImageFormat);
        }
Exemple #2
0
        void AddImageFormat(BarSubItem biImagesMenuItem, ImageFormat format)
        {
            ImageCodecInfo codecInfo = FindImageCodec(format);

            if (codecInfo == null)
            {
                return;
            }
            BarExportToImageItem item = new BarExportToImageItem(this.manager, format, codecInfo);

            item.ItemClick += new ItemClickEventHandler(OnExportImageClick);
            biImagesMenuItem.AddItem(item);
        }
Exemple #3
0
 void AddImageFormat(BarSubItem biImagesMenuItem, ImageFormat format)
 {
     ImageCodecInfo codecInfo = FindImageCodec(format);
     if (codecInfo == null)
         return;
     BarExportToImageItem item = new BarExportToImageItem(this.manager, format, codecInfo);
     item.ItemClick += new ItemClickEventHandler(OnExportImageClick);
     biImagesMenuItem.AddItem(item);
 }