Example #1
0
 public int getHeight() {
   return bitmap.getHeight();
 }
Example #2
0
  static {
    holders =
        new GDBitmapHolder[] {
          // 0
          new GDBitmapHolder(Bitmap.fromDrawable(R.drawable.s_helmet)),

          // 1
          new GDBitmapHolder(Bitmap.fromDrawable(R.drawable.codebrew)),

          // 2
          new GDBitmapHolder(Bitmap.fromDrawable(R.drawable.gd)),

          // 3
          new GDBitmapHolder(Bitmap.fromDrawable(R.drawable.s_steering)),

          // 4
          new GDBitmapHolder(
              new Bitmap[] {
                Bitmap.fromDrawable(R.drawable.s_wheel1), Bitmap.fromDrawable(R.drawable.s_wheel2)
              }),

          // 5
          new GDBitmapHolder(
              new Bitmap[] {
                Bitmap.fromDrawable(R.drawable.s_arrow_up),
                Bitmap.fromDrawable(R.drawable.s_arrow_down)
              }),

          // 6
          new GDBitmapHolder(
              new Bitmap[] {
                Bitmap.fromDrawable(R.drawable.s_flag_start0),
                Bitmap.fromDrawable(R.drawable.s_flag_start1),
                Bitmap.fromDrawable(R.drawable.s_flag_start2),
                Bitmap.fromDrawable(R.drawable.s_flag_finish0),
                Bitmap.fromDrawable(R.drawable.s_flag_finish1),
                Bitmap.fromDrawable(R.drawable.s_flag_finish2)
              }),

          // 7
          new GDBitmapHolder(
              new Bitmap[] {
                Bitmap.fromDrawable(R.drawable.s_lock0),
                Bitmap.fromDrawable(R.drawable.s_lock1),
                Bitmap.fromDrawable(R.drawable.s_lock2)
              }),

          // 8
          new GDBitmapHolder(
              new Bitmap[] {
                Bitmap.fromDrawable(R.drawable.s_medal_gold),
                Bitmap.fromDrawable(R.drawable.s_medal_silver),
                Bitmap.fromDrawable(R.drawable.s_medal_bronze)
              }),

          // 9
          new GDBitmapHolder(
              new Bitmap[] {
                Bitmap.fromDrawable(R.drawable.levels_wheel0),
                Bitmap.fromDrawable(R.drawable.levels_wheel1),
                Bitmap.fromDrawable(R.drawable.levels_wheel2)
              }),

          // 10
          new GDBitmapHolder(Bitmap.fromDrawable(R.drawable.s_fender)),

          // 11
          new GDBitmapHolder(Bitmap.fromDrawable(R.drawable.s_engine)),

          // 12
          new GDBitmapHolder(
              new Bitmap[] {
                Bitmap.fromDrawable(R.drawable.s_bluearm),
                Bitmap.fromDrawable(R.drawable.s_blueleg),
                Bitmap.fromDrawable(R.drawable.s_bluebody)
              })
        };
    empty =
        new Bitmap(
            android.graphics.Bitmap.createBitmap(1, 1, android.graphics.Bitmap.Config.ARGB_8888));
  }
Example #3
0
 public int getWidth() {
   return bitmap.getWidth();
 }