コード例 #1
0
        private void button5_Click(object sender, EventArgs e)
        {
            Color pColor;
            frmLegendItemSymbol frmShadow         = new frmLegendItemSymbol();
            IStyleGalleryItem   pStyleGalleryItem = frmShadow.GetItem(esriSymbologyStyleClass.esriStyleClassShadows);

            if (pStyleGalleryItem != null)
            {
                m_SymbolShadow = (ISymbolShadow)pStyleGalleryItem.Item;
                pColor         = this.ConvertIRgbColorToColor(((ISymbolShadow)pStyleGalleryItem.Item).FillSymbol.Color as IRgbColor);
            }
            else
            {
                m_SymbolShadow = new SymbolShadowClass();
                pColor         = Color.White;
            }
            this.btnShadowColor.BackColor = pColor;
            IStyleGalleryClass pStyleGalleryClass = new ShadowStyleGalleryClassClass();
            Bitmap             pBitmap            = StyleGalleryItemToBmp(this.pictureBox3.Width, this.pictureBox3.Height, pStyleGalleryClass, pStyleGalleryItem);

            this.pictureBox3.Image = pBitmap as Image;
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: chinasio/minegis
 private void button5_Click(object sender, EventArgs e)
 {
     Color pColor;
     frmLegendItemSymbol frmShadow = new frmLegendItemSymbol();
     IStyleGalleryItem pStyleGalleryItem = frmShadow.GetItem(esriSymbologyStyleClass.esriStyleClassShadows);
     if (pStyleGalleryItem != null)
     {
        m_SymbolShadow = (ISymbolShadow)pStyleGalleryItem.Item;
         pColor = this.ConvertIRgbColorToColor(((ISymbolShadow)pStyleGalleryItem.Item).FillSymbol.Color as IRgbColor);
     }
     else
     {
         m_SymbolShadow = new SymbolShadowClass();
         pColor = Color.White;
     }
     this.btnShadowColor .BackColor = pColor;
        IStyleGalleryClass pStyleGalleryClass = new ShadowStyleGalleryClassClass ();
     Bitmap pBitmap = StyleGalleryItemToBmp(this.pictureBox3.Width, this.pictureBox3.Height, pStyleGalleryClass, pStyleGalleryItem);
     this.pictureBox3.Image = pBitmap as Image;
 }