laptop and a wrench

Bug

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

Last Published: August 25, 2014 No Product Found
Bug ID Number NIM008824
SubmittedMay 10, 2007
Last ModifiedJune 5, 2024
Applies toNo Product Found
Version found9.2
Program languageJava
Version Fixed9.3
StatusFixed

Workaround

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();

Steps to Reproduce

Bug ID: NIM008824

Software:

  • No Product Found

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options