Examples of importTileBitmap()


Examples of de.yaams.extensions.basemap.tiled.core.TileSet.importTileBitmap()

              int colorInt = Integer.parseInt(transStr, 16);
              Color color = new Color(colorInt);
              set.setTransparentColor(color);
            }

            set.importTileBitmap(sourcePath, new BasicTileCutter(tileWidth, tileHeight, tileSpacing, tileMargin));
          } else {
            Image image = unmarshalImage(child, tilesetBaseDir);
            String idValue = getAttributeValue(child, "id");
            int imageId = Integer.parseInt(idValue);
            set.addImage(image, imageId);
View Full Code Here

Examples of tiled.core.TileSet.importTileBitmap()

      if (!setByName.containsKey(name)) {
        // The tileset's not yet included. Add it to the map
        TileSet set = new TileSet();
        set.setName(constructTilesetName(name));
        BasicTileCutter cutter = new BasicTileCutter(32, 32, 0, 0);
        set.importTileBitmap(name, cutter);
       
        setByName.put(name, set);
        map.addTileset(set);
      }
    }
View Full Code Here

Examples of tiled.core.TileSet.importTileBitmap()

                            int colorInt = Integer.parseInt(transStr, 16);
                            Color color = new Color(colorInt);
                            set.setTransparentColor(color);
                        }

                        set.importTileBitmap(sourcePath, new BasicTileCutter(
                                tileWidth, tileHeight, tileSpacing, tileMargin));
                    }
                }
                else if (child.getNodeName().equalsIgnoreCase("tile")) {
                    Tile tile = unmarshalTile(set, child, tilesetBaseDir);
View Full Code Here

Examples of tiled.core.TileSet.importTileBitmap()

//                  if (transCheck.isSelected()) {
//                      Color color = colorButton.getColor();
//                      newTileset.setTransparentColor(color);
//                  }

                  newTileset.importTileBitmap(file,
                          new BasicTileCutter(width, height, spacing, margin));
                  return newTileset;
              }
              catch (IOException e) {
                MessageDialog.openError(getParentShell(),"Error importing tileset",IMPORT_ERROR_MSG);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.