Creating IPictureElement

Discussion created by aviabunin on Jun 29, 2012
Latest reply on Jun 30, 2012 by aviabunin
Dear Gurus!
Can anyone give a link to an example  of creating IPictureElement (arcgis engine 2010, c#) on the map?

PS. Next is an example of creating TextElement:

        private void showText(double x, double y)
            IGraphicsContainer graphicsContainer = axMapControl1.Map as IGraphicsContainer;
            IElement element = new TextElementClass();
            ITextElement textElement = element as ITextElement;

            //Create a point as the shape of the element.
            IPoint point = new PointClass();
            point.X = x;
            point.Y = y;
            element.Geometry = point;
            textElement.Text = "Hello World";
            graphicsContainer.AddElement(element, 0);

            //Flag the new text to invalidate.
            IActiveView activeView = axMapControl1.Map as IActiveView;
            activeView.PartialRefresh(esriViewDrawPhase.esriViewGraphics, null, null);