title: Android Glide - BitmapTransformation() cannot be applied to (android.content.Context)
body: <p>I try to crop an image inside recyclerview adapter:</p>
  
  <p>This is the code: </p>
  
  <pre><code>Glide
      .with(context)
      .load(imgUrl)
      .transform(CutOffLogo(context))
      .into(holder.image)
  </code></pre>
  
  <p>This the class:</p>
  
  <pre><code>public static class CutOffLogo extends BitmapTransformation {
  
      public CutOffLogo(Context context) {
          super(context); // HERE
      }
  
      @Override
      protected Bitmap transform(BitmapPool pool, Bitmap toTransform,
                                 int outWidth, int outHeight) {
  
          Bitmap myTransformedBitmap = Bitmap.createBitmap(
                  toTransform,
                  10,
                  10,
                  toTransform.getWidth(),
                  toTransform.getHeight() - 20);
  
          return myTransformedBitmap;
      }
  }
  </code></pre>
  
  <p>First error is on static:</p>
  
  <pre><code>Modifier 'static' not allowed here
  </code></pre>
  
  <p>When I change it to abstract then I get </p>
  
  <pre><code>Cannot create an instance of an abstract class
  </code></pre>
  
  <p>on <code>.transform(CutOffLogo(context))</code></p>
  
  <p>Then I get <code>'BitmapTransformation()'</code> in </p>
  
  <pre><code>'com.bumptech.glide.load.resource.bitmap.BitmapTransformation' cannot be applied to '(android.content.Context)'
  </code></pre>
  
  <p>on <code>context</code> in <code>super(context)</code></p>
  
  <p>How to solve this?</p>