コード例 #1
0
  public BitmapPixels(String name, Bitmap bitmap) {
    this.mName = name;

    this.mHeight = bitmap.getHeight();
    this.mWidth = bitmap.getWidth();
    this.mPixels = new short[mHeight][mWidth];
    this.mBinaryPixels = new short[mHeight][mWidth];

    BitmapTools.getPixels(bitmap, mPixels);
  }
コード例 #2
0
 public void exportBinaryPixelsToFile(String outputDirectory, String name) {
   BitmapTools.exportToFile(mBinaryPixels, mHeight, mWidth, outputDirectory, name);
 }