title: Image size java
body: <p>I am trying to design a character but I don't know how to input a image of a face where the stick figure head is at and how to size the image? What is the simplest way to code that in java? </p>
  
  <pre><code> package com.udacity.gamedev.stickfigure;
  
      import com.badlogic.gdx.ApplicationAdapter;
      import com.badlogic.gdx.Gdx;
      import com.badlogic.gdx.graphics.GL20;
      import com.badlogic.gdx.graphics.glutils.ShapeRenderer;
      import com.badlogic.gdx.graphics.glutils.ShapeRenderer.ShapeType;
  
      import java.awt.Color;
  
      public class StickFigure extends ApplicationAdapter {
  
      // Declare
      ShapeRenderer renderer;
  
      @Override
      public void create() {
          // Initialize
          renderer = new ShapeRenderer();
      }
  
      @Override
      public void dispose() {
          // Dispose
          renderer.dispose();
      }
  
      @Override
      public void render() {
          Gdx.gl.glClearColor(0, 0, 0, 1);
          Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
  
          renderer.begin(ShapeType.Filled);
  
          // Head
          renderer.circle(100, 100, 20);
          renderer.end();
  
          renderer.begin(ShapeType.Line);
  
          // Torso
          renderer.line(100, 50, 100, 100);
  
          // Legs
          renderer.line(85, 35, 100, 50);
          renderer.line(115, 35, 100, 50);
  
          // Arms
          renderer.line(85, 70, 100, 85);
          renderer.line(115, 70, 100, 85);
          renderer.end();
      }
  }
  </code></pre>
  
  <p><a href="http://i.stack.imgur.com/Yawak.jpg" rel="nofollow">enter image description here</a></p>