laptop and a wrench

漏洞

ISymbologyStyleClass returns a Picture object via the previewItem () method.

上次发布: August 25, 2014 No Product Found
漏洞 ID 编号 NIM008824
已提交May 10, 2007
上次修改时间June 5, 2024
适用范围No Product Found
找到的版本9.2
编程语言Java
修正版本9.3
状态Fixed

解决办法

When you do a previewItem you will get a picture.Picture picture = style.getPreviewItem(item, 256, 256); You can create any picture element from belowBmpPictureElementEmfPictureElementGifPictureElementImgPictureElementJpgPictureElementPngPictureElementSidPictureElementTifPictureElementif you create a BmpPictureElement, So it will beBmpPictureElement bmpPicture = new BmpPictureElement();bmpPicture.importPicture(picture); // import the picture that you got from previewItem Once this is done you can add this to the maps graphics container as an elementIGraphicsContainer container = mapBean.getActiveView().getGraphicsContainer() // where mapBean is of type MapBeancontainer.addElement(bmpPicture);mapBean.getActiveView().refresh();

重现步骤

漏洞 ID: NIM008824

软件:

  • No Product Found

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项