Esempio n. 1
0
 public final void blend(final ImageResource aSourceImage, final int aAlpha8) {
   width = aSourceImage.getWidth();
   height = aSourceImage.getHeight();
   updateBufferIfNecessary();
   aSourceImage.getRGB(buffer, 0, width, 0, 0, width, height);
   applyAlpha(aAlpha8);
 }
Esempio n. 2
0
 public final void blend(
     final ImageResource aSourceImage, final Rectangle aSourceRect, final int aAlpha8) {
   width = aSourceRect.width;
   height = aSourceRect.height;
   updateBufferIfNecessary();
   aSourceImage.getRGB(buffer, 0, width, aSourceRect.x, aSourceRect.y, width, height);
   applyAlpha(aAlpha8);
 }