content: package androidx.core.graphics;
  
  import android.graphics.Bitmap;
  import android.graphics.Canvas;
  import android.graphics.ColorSpace;
  import android.graphics.Point;
  import android.graphics.PointF;
  import kotlin.Metadata;
  import kotlin.Unit;
  import kotlin.jvm.functions.Function1;
  import kotlin.jvm.internal.Intrinsics;
  
  @Metadata(d1 = {"\u0000D\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\b\u001a#\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u00032\b\b\u0002\u0010\u0005\u001a\u00020\u0006H\b\u001a7\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u00032\b\b\u0002\u0010\u0005\u001a\u00020\u00062\b\b\u0002\u0010\u0007\u001a\u00020\b2\b\b\u0002\u0010\t\u001a\u00020\nH\b\u001a)\u0010\u000b\u001a\u00020\u0001*\u00020\u00012\u0017\u0010\f\u001a\u0013\u0012\u0004\u0012\u00020\u000e\u0012\u0004\u0012\u00020\u000f0\r¢\u0006\u0002\b\u0010H\bø\u0001\u0000\u001a\u0015\u0010\u0011\u001a\u00020\b*\u00020\u00012\u0006\u0010\u0012\u001a\u00020\u0013H\n\u001a\u0015\u0010\u0011\u001a\u00020\b*\u00020\u00012\u0006\u0010\u0012\u001a\u00020\u0014H\n\u001a\u001d\u0010\u0015\u001a\u00020\u0003*\u00020\u00012\u0006\u0010\u0016\u001a\u00020\u00032\u0006\u0010\u0017\u001a\u00020\u0003H\n\u001a'\u0010\u0018\u001a\u00020\u0001*\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u00032\b\b\u0002\u0010\u0019\u001a\u00020\bH\b\u001a'\u0010\u001a\u001a\u00020\u000f*\u00020\u00012\u0006\u0010\u0016\u001a\u00020\u00032\u0006\u0010\u0017\u001a\u00020\u00032\b\b\u0001\u0010\u001b\u001a\u00020\u0003H\n\u0002\u0007\n\u0005\b20\u0001¨\u0006\u001c"}, d2 = {"createBitmap", "Landroid/graphics/Bitmap;", "width", "", "height", "config", "Landroid/graphics/Bitmap$Config;", "hasAlpha", "", "colorSpace", "Landroid/graphics/ColorSpace;", "applyCanvas", "block", "Lkotlin/Function1;", "Landroid/graphics/Canvas;", "", "Lkotlin/ExtensionFunctionType;", "contains", "p", "Landroid/graphics/Point;", "Landroid/graphics/PointF;", "get", "x", "y", "scale", "filter", "set", "color", "core-ktx_release"}, k = 2, mv = {1, 6, 0}, xi = 48)
  /* compiled from: Bitmap.kt */
  public final class BitmapKt {
      public static final Bitmap applyCanvas(Bitmap $this$applyCanvas, Function1<? super Canvas, Unit> block) {
          Intrinsics.checkNotNullParameter($this$applyCanvas, "<this>");
          Intrinsics.checkNotNullParameter(block, "block");
          block.invoke(new Canvas($this$applyCanvas));
          return $this$applyCanvas;
      }
  
      public static final boolean contains(Bitmap $this$contains, Point p) {
          Intrinsics.checkNotNullParameter($this$contains, "<this>");
          Intrinsics.checkNotNullParameter(p, "p");
          int width = $this$contains.getWidth();
          int i = p.x;
          return (i >= 0 && i < width) && p.y >= 0 && p.y < $this$contains.getHeight();
      }
  
      public static final boolean contains(Bitmap $this$contains, PointF p) {
          Intrinsics.checkNotNullParameter($this$contains, "<this>");
          Intrinsics.checkNotNullParameter(p, "p");
          return p.x >= 0.0f && p.x < ((float) $this$contains.getWidth()) && p.y >= 0.0f && p.y < ((float) $this$contains.getHeight());
      }
  
      public static final Bitmap createBitmap(int width, int height, Bitmap.Config config) {
          Intrinsics.checkNotNullParameter(config, "config");
          Bitmap createBitmap = Bitmap.createBitmap(width, height, config);
          Intrinsics.checkNotNullExpressionValue(createBitmap, "createBitmap(width, height, config)");
          return createBitmap;
      }
  
      public static final Bitmap createBitmap(int width, int height, Bitmap.Config config, boolean hasAlpha, ColorSpace colorSpace) {
          Intrinsics.checkNotNullParameter(config, "config");
          Intrinsics.checkNotNullParameter(colorSpace, "colorSpace");
          Bitmap createBitmap = Bitmap.createBitmap(width, height, config, hasAlpha, colorSpace);
          Intrinsics.checkNotNullExpressionValue(createBitmap, "createBitmap(width, heig…ig, hasAlpha, colorSpace)");
          return createBitmap;
      }
  
      public static /* synthetic */ Bitmap createBitmap$default(int width, int height, Bitmap.Config config, int i, Object obj) {
          if ((i & 4) != 0) {
              config = Bitmap.Config.ARGB_8888;
          }
          Intrinsics.checkNotNullParameter(config, "config");
          Bitmap createBitmap = Bitmap.createBitmap(width, height, config);
          Intrinsics.checkNotNullExpressionValue(createBitmap, "createBitmap(width, height, config)");
          return createBitmap;
      }
  
      public static /* synthetic */ Bitmap createBitmap$default(int width, int height, Bitmap.Config config, boolean hasAlpha, ColorSpace colorSpace, int i, Object obj) {
          if ((i & 4) != 0) {
              config = Bitmap.Config.ARGB_8888;
          }
          if ((i & 8) != 0) {
              hasAlpha = true;
          }
          if ((i & 16) != 0) {
              ColorSpace colorSpace2 = ColorSpace.get(ColorSpace.Named.SRGB);
              Intrinsics.checkNotNullExpressionValue(colorSpace2, "get(ColorSpace.Named.SRGB)");
              colorSpace = colorSpace2;
          }
          Intrinsics.checkNotNullParameter(config, "config");
          Intrinsics.checkNotNullParameter(colorSpace, "colorSpace");
          Bitmap createBitmap = Bitmap.createBitmap(width, height, config, hasAlpha, colorSpace);
          Intrinsics.checkNotNullExpressionValue(createBitmap, "createBitmap(width, heig…ig, hasAlpha, colorSpace)");
          return createBitmap;
      }
  
      public static final int get(Bitmap $this$get, int x, int y) {
          Intrinsics.checkNotNullParameter($this$get, "<this>");
          return $this$get.getPixel(x, y);
      }
  
      public static final Bitmap scale(Bitmap $this$scale, int width, int height, boolean filter) {
          Intrinsics.checkNotNullParameter($this$scale, "<this>");
          Bitmap createScaledBitmap = Bitmap.createScaledBitmap($this$scale, width, height, filter);
          Intrinsics.checkNotNullExpressionValue(createScaledBitmap, "createScaledBitmap(this, width, height, filter)");
          return createScaledBitmap;
      }
  
      public static /* synthetic */ Bitmap scale$default(Bitmap $this$scale_u24default, int width, int height, boolean filter, int i, Object obj) {
          if ((i & 4) != 0) {
              filter = true;
          }
          Intrinsics.checkNotNullParameter($this$scale_u24default, "<this>");
          Bitmap createScaledBitmap = Bitmap.createScaledBitmap($this$scale_u24default, width, height, filter);
          Intrinsics.checkNotNullExpressionValue(createScaledBitmap, "createScaledBitmap(this, width, height, filter)");
          return createScaledBitmap;
      }
  
      public static final void set(Bitmap $this$set, int x, int y, int color) {
          Intrinsics.checkNotNullParameter($this$set, "<this>");
          $this$set.setPixel(x, y, color);
      }
  }
  