Java Image getShieldImage()

Here you can find the source of getShieldImage()

Description

get Shield Image

License

Open Source License

Declaration

public static Image getShieldImage() 

Method Source Code

//package com.java2s;
/*/*from ww  w .j  av a2s.  co  m*/
 * MegaMekLab - Copyright (C) 2008
 *
 * Original author - jtighe (torren@users.sourceforge.net)
 *
 * This program is free software; you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation; either version 2 of the License, or (at your option) any later
 * version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details.
 */

import java.awt.Image;

import java.io.File;

import javax.swing.ImageIcon;

public class Main {
    public static String recordSheetPath = "./data/images/recordsheets/";

    public static Image getShieldImage() {
        String path = new File(recordSheetPath).getAbsolutePath() + File.separatorChar;
        Image image = new ImageIcon(path + "twbiped-shields.png").getImage();
        return image;
    }
}

Related

  1. getManagedImage(Component source, String file, float tint, Color solid)
  2. getNewImageFileChooser()
  3. getOpenSwingImage(String name)
  4. getPanelImage(JPanel p)
  5. getScreenShareImage()
  6. getWindowImage(Window window)
  7. imageOf(Action action)
  8. initVistaDragTextureImage()
  9. isContinueImageUpdate(JComponent comp, Image img)