PictureFillSymbol in 100.0

1013
2
05-31-2017 03:29 PM
DaysieJohnson
New Contributor II

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?

Tags (1)
0 Kudos
2 Replies
nita14
by
Occasional Contributor III

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

DaysieJohnson
New Contributor II

thanks for reply)

0 Kudos