title: Is there any equivalent for Raster.getSample(int, int, int) in Android?
body: <p>I need to write a Project in Android, with an existing Java-Code-Fragment.
  In these, <code>Raster.getSample(int x, int y, int b)</code> is used.
  The 3rd Parameter is the band, of the Pixel.</p>
  
  <p>To get these running in Android, i use <code>Bitmap</code> instead of <code>Raster</code>.
  But know i can only use getPixels(int, int). How can i extract the band?
  Is there any other Class or Method i can use?</p>
  
  <p>Old Code:</p>
  
  <pre><code>Raster rasterData;
  y_ = rasterData.getSample(x + 1, row, 0);
  </code></pre>
  
  <p>New Code:</p>
  
  <pre><code>Bitmap rasterData;
  y_ = rasterData.getPixels(x + 1, row);
  ...?...
  </code></pre>
  
  <p>I how someon have an idea.
  Thanks!</p>