package Ġme . sh ou h eng . utils . k tx Ċ Ċ import Ġandroid . graphics . Bitmap Ċ import Ġandroid . graphics . drawable . Drawable Ċ import Ġandroidx . annotation . Color Int Ċ import Ġandroidx . annotation . Int Range Ċ import Ġme . sh ou h eng . utils . ui . Image Utils Ċ import Ġjava . io . File Ċ Ċ fun ĠBitmap . to Bytes ( format : ĠBitmap . Compress Format ): ĠByteArray Ġ= ĠImage Utils . bitmap 2 Bytes ( this , Ġformat ) Ċ Ċ fun ĠBitmap . to Drawable (): ĠDrawable Ġ= ĠImage Utils . bitmap 2 Drawable ( this ) Ċ Ċ fun ĠBitmap . scale ( width : ĠInt , Ġheight : ĠInt ): ĠBitmap Ġ= ĠImage Utils . scale ( this , Ġwidth , Ġheight ) Ċ Ċ fun ĠBitmap . scale ( width : ĠInt , Ġheight : ĠInt , Ġre cycle : ĠBoolean ): ĠBitmap Ġ= ĠImage Utils . scale ( this , Ġwidth , Ġheight , Ġre cycle ) Ċ Ċ fun ĠBitmap . scale ( scale Width : ĠFloat , Ġscale Height : ĠFloat ): ĠBitmap Ġ= ĠImage Utils . scale ( this , Ġscale Width , Ġscale Height ) Ċ Ċ fun ĠBitmap . scale ( scale Width : ĠFloat , Ġscale Height : ĠFloat , Ġre cycle : ĠBoolean ): ĠBitmap Ġ= ĠImage Utils . scale ( this , Ġscale Width , Ġscale Height , Ġre cycle ) Ċ Ċ fun ĠBitmap . clip ( x : ĠInt , Ġy : ĠInt , Ġwidth : ĠInt , Ġheight : ĠInt ): ĠBitmap Ġ= ĠImage Utils . clip ( this , Ġx , Ġy , Ġwidth , Ġheight ) Ċ Ċ fun ĠBitmap . clip ( x : ĠInt , Ġy : ĠInt , Ġwidth : ĠInt , Ġheight : ĠInt , Ġre cycle : ĠBoolean ): ĠBitmap Ġ= ĠImage Utils . clip ( this , Ġx , Ġy , Ġwidth , Ġheight , Ġre cycle ) Ċ Ċ fun ĠBitmap . rotate ( degree : ĠInt , Ġpx : ĠFloat , Ġpy : ĠFloat ): ĠBitmap Ġ= ĠImage Utils . rotate ( this , Ġdegree , Ġpx , Ġpy ) Ċ Ċ fun ĠBitmap . rotate ( degree : ĠInt , Ġpx : ĠFloat , Ġpy : ĠFloat , Ġre cycle : ĠBoolean ): ĠBitmap Ġ= ĠImage Utils . rotate ( this , Ġdegree , Ġpx , Ġpy , Ġre cycle ) Ċ Ċ fun ĠBitmap . to Round (): ĠBitmap Ġ= ĠImage Utils . to Round ( this ) Ċ Ċ fun ĠBitmap . to Round ( recycle : ĠBoolean ): ĠBitmap Ġ= ĠImage Utils . to Round ( this , Ġre cycle ) Ċ Ċ fun ĠBitmap . to Alpha (): ĠBitmap Ġ= ĠImage Utils . to Alpha ( this ) Ċ Ċ fun ĠBitmap . to Alpha ( recycle : ĠBoolean ): ĠBitmap Ġ= ĠImage Utils . to Alpha ( this , Ġre cycle ) Ċ Ċ fun ĠBitmap . to Gray (): ĠBitmap Ġ= ĠImage Utils . to Gray ( this ) Ċ Ċ fun ĠBitmap . to Gray ( recycle : ĠBoolean ): ĠBitmap Ġ= ĠImage Utils . to Gray ( this , Ġre cycle ) Ċ Ċ fun ĠBitmap . save ( filePath : ĠString , Ġformat : ĠBitmap . Compress Format ): ĠBoolean Ġ= ĠImage Utils . save ( this , ĠfilePath , Ġformat ) Ċ Ċ fun ĠBitmap . save ( file : ĠFile , Ġformat : ĠBitmap . Compress Format ): ĠBoolean Ġ= ĠImage Utils . save ( this , Ġfile , Ġformat ) Ċ Ċ fun ĠBitmap . save ( filePath : ĠString , Ġformat : ĠBitmap . Compress Format , Ġre cycle : ĠBoolean ): ĠBoolean Ġ= ĠImage Utils . save ( this , ĠfilePath , Ġformat , Ġre cycle ) Ċ Ċ fun ĠBitmap . save ( file : ĠFile , Ġformat : ĠBitmap . Compress Format , Ġre cycle : ĠBoolean ): ĠBoolean Ġ= ĠImage Utils . save ( this , Ġfile , Ġformat , Ġre cycle ) Ċ Ċ fun ĠBitmap . compress By Scale ( new Width : ĠInt , Ġnew Height : ĠInt ): ĠBitmap Ġ= ĠImage Utils . compress By Scale ( this , Ġnew Width , Ġnew Height ) Ċ Ċ fun ĠBitmap . compress By Scale ( new Width : ĠInt , Ġnew Height : ĠInt , Ġre cycle : ĠBoolean ): ĠBitmap Ġ= ĠImage Utils . compress By Scale ( this , Ġnew Width , Ġnew Height , Ġre cycle ) Ċ Ċ fun ĠBitmap . compress By Scale ( scale Width : ĠFloat , Ġscale Height : ĠFloat ): ĠBitmap Ġ= ĠImage Utils . compress By Scale ( this , Ġscale Width , Ġscale Height ) Ċ Ċ fun ĠBitmap . compress By Scale ( scale Width : ĠFloat , Ġscale Height : ĠFloat , Ġre cycle : ĠBoolean ): ĠBitmap Ġ= ĠImage Utils . compress By Scale ( this , Ġscale Width , Ġscale Height , Ġre cycle ) Ċ Ċ fun ĠBitmap . compress By Quality (@ Int Range ( from Ġ= Ġ 0 , Ġto Ġ= Ġ 1 0 0 ) Ġquality : ĠInt ): ĠBitmap Ġ= ĠImage Utils . compress By Quality ( this , Ġquality ) Ċ Ċ fun ĠBitmap . compress By Quality (@ Int Range ( from Ġ= Ġ 0 , Ġto Ġ= Ġ 1 0 0 ) Ġquality : ĠInt , Ġre cycle : ĠBoolean ): ĠBitmap Ġ= ĠImage Utils . compress By Quality ( this , Ġquality , Ġre cycle ) Ċ Ċ fun ĠBitmap . compress By Quality ( max Byte Size : ĠLong ): ĠBitmap Ġ= ĠImage Utils . compress By Quality ( this , Ġmax Byte Size ) Ċ Ċ fun ĠBitmap . compress By Quality ( max Byte Size : ĠLong , Ġre cycle : ĠBoolean ): ĠBitmap Ġ= ĠImage Utils . compress By Quality ( this , Ġmax Byte Size , Ġre cycle ) Ċ Ċ fun ĠBitmap . compress By Sample Size ( sample Size : ĠInt ): ĠBitmap Ġ= ĠImage Utils . compress By Sample Size ( this , Ġsample Size ) Ċ Ċ fun ĠBitmap . compress By Sample Size ( sample Size : ĠInt , Ġre cycle : ĠBoolean ): ĠBitmap Ġ= ĠImage Utils . compress By Sample Size ( this , Ġsample Size , Ġre cycle ) Ċ Ċ fun ĠBitmap . compress By Sample Size ( maxWidth : ĠInt , ĠmaxHeight : ĠInt ): ĠBitmap Ġ= ĠImage Utils . compress By Sample Size ( this , ĠmaxWidth , ĠmaxHeight ) Ċ Ċ fun ĠBitmap . compress By Sample Size ( maxWidth : ĠInt , ĠmaxHeight : ĠInt , Ġre cycle : ĠBoolean ): ĠBitmap Ġ= ĠImage Utils . compress By Sample Size ( this , ĠmaxWidth , ĠmaxHeight , Ġre cycle ) Ċ Ċ fun ĠDrawable . to Bitmap (): ĠBitmap Ġ= ĠImage Utils . drawable 2 Bitmap ( this ) Ċ Ċ fun ĠDrawable . tint (@ Color Int Ġcolor : ĠInt ): ĠDrawable Ġ= ĠImage Utils . tint Drawable ( this , Ġcolor ) Ċ