laptop and a wrench

Bogue

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

Dernière publication: August 25, 2014 No Product Found
Numéro d’ID de bogue NIM008824
EnvoiMay 10, 2007
Dernière modificationJune 5, 2024
S’applique àNo Product Found
Version trouvée9.2
Langue du programmeJava
Version de correction9.3
StatutFixed

Solution de contournement

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

Étapes pour reproduire

ID de bogue: NIM008824

Logiciel:

  • No Product Found

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement