Android Open Source - reflector Test Bitmap






From Project

Back to project page reflector.

License

The source code is released under:

Copyright (c) 2011 Hannes Romppainen Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the ...

If you think the Android project reflector listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.webs.graub.reflector;
//from  ww  w  . ja  va2  s  . co m
import android.graphics.Bitmap;
import android.graphics.Color;

public class TestBitmap {

  static int counter = 0;
  Bitmap bmp;

  TestBitmap() {
    ++counter;
    bmp = Bitmap.createBitmap(300,600,Bitmap.Config.ARGB_8888);
    
    for(int i=0; i<counter; ++i) {
      if (4*i > 600) break;
      for(int x=10;x<290;++x) {
        bmp.setPixel(x,4*i,Color.RED);
      }
    }
  }

  static void reset() {
    counter = 0;
  }

  Bitmap getBitmap() {
    return bmp;
  }
}




Java Source Code List

com.webs.graub.reflector.BitmapContentAdapter.java
com.webs.graub.reflector.ControlPanel.java
com.webs.graub.reflector.Installer.java
com.webs.graub.reflector.ReflectorClient.java
com.webs.graub.reflector.ReflectorComms.java
com.webs.graub.reflector.ReflectorService.java
com.webs.graub.reflector.Screenshot.java
com.webs.graub.reflector.Su.java
com.webs.graub.reflector.TestBitmap.java
com.webs.graub.reflector.UpnpPush.java