Code example for Matrix

Methods: mapVectors

0
      if (realW == 0 || realH == 0) { return; } // nothing to draw
      if (drawMatrix != null) {
        final float[] src = bufferSrcVector, dst = bufferDstVector;
        src[0] = realW;
        src[1] = 0;
        drawMatrix.mapVectors(dst, src);
        realW = (int)dst[0];
        src[0] = 0;
        src[1] = realH;
        drawMatrix.mapVectors(dst, src);
        realH = (int)dst[1];
      } 
    } 
 
    final Bitmap decorated;
 
    Bitmap bitmap = decoratedCache != null ? decoratedCache.get() : null;
    if (bitmap == null || bitmap.getWidth() != resultW || bitmap.getHeight() != resultH) {
      final Bitmap old = bitmap;
      bitmap = Bitmap.createBitmap(resultW, resultH, Bitmap.Config.ARGB_8888);
Stop searching for code, let great code find you!  Add Codota to your java IDE