Hello, is it possible to fill Graphic objects with tiled pictures (PictureFillSymbol) like that was on 10.2.x in Java runtime 100.0? Or any other possibilities to fill Graphic object with pictures?
Hi Daysie,
Well, as far as I know, it is not possible to fill polygon graphics with pictures. Although, you may work with marker symbol for points. Here is the snippet from the guide Symbols and renderers—ArcGIS Runtime SDK for Java | ArcGIS for Developers
//create a picture marker symbol
Image image = new Image("file:RedShinyPin.png");
final PictureMarkerSymbol pictureMarker = new PictureMarkerSymbol(image);
//load the symbol
pictureMarker.loadAsync();
//once the symbol is loaded it can be used to add to a graphic
pictureMarker.addDoneLoadingListener(new Runnable() {
@Override
public void run() {
//create graphic
Graphic graphic = new Graphic(location, pictureMarker);
//add the graphic to the graphics overlay
graphicsOvelay.getGraphics().add(graphic);
}});
}
Regards,
Adam
thanks for reply)