Доброго времени суток!
Может кто-то поделится ссылкой на пример создания из картинки элемента (JpgPictureElementClass или другого типа) на axMapControl? (arcEngine 2010)
PS пример создания текстового элемента
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);
}
А просто элементу присвоить значение типа bitmap?
2. В приведенном примере изображение имеет постоянный размер в метрах, а как сделать постоянный размер в пикселах дисплея?