|
|
@ -1,8 +1,6 @@ |
|
|
|
package io.legado.app.ui.book.read.page.delegate |
|
|
|
package io.legado.app.ui.book.read.page.delegate |
|
|
|
|
|
|
|
|
|
|
|
import android.graphics.* |
|
|
|
import android.graphics.* |
|
|
|
import android.graphics.drawable.BitmapDrawable |
|
|
|
|
|
|
|
import android.graphics.drawable.ColorDrawable |
|
|
|
|
|
|
|
import android.graphics.drawable.GradientDrawable |
|
|
|
import android.graphics.drawable.GradientDrawable |
|
|
|
import android.os.Build |
|
|
|
import android.os.Build |
|
|
|
import io.legado.app.help.ReadBookConfig |
|
|
|
import io.legado.app.help.ReadBookConfig |
|
|
@ -271,13 +269,7 @@ class SimulationPageDelegate(pageView: PageView) : HorizontalPageDelegate(pageVi |
|
|
|
mMatrix.setValues(mMatrixArray) |
|
|
|
mMatrix.setValues(mMatrixArray) |
|
|
|
mMatrix.preTranslate(-mBezierControl1.x, -mBezierControl1.y) |
|
|
|
mMatrix.preTranslate(-mBezierControl1.x, -mBezierControl1.y) |
|
|
|
mMatrix.postTranslate(mBezierControl1.x, mBezierControl1.y) |
|
|
|
mMatrix.postTranslate(mBezierControl1.x, mBezierControl1.y) |
|
|
|
ReadBookConfig.bg?.let { |
|
|
|
canvas.drawColor(ReadBookConfig.bgMeanColor) |
|
|
|
if (it is BitmapDrawable) { |
|
|
|
|
|
|
|
canvas.drawBitmap(it.bitmap, 0f, 0f, mPaint) |
|
|
|
|
|
|
|
} else if (it is ColorDrawable) { |
|
|
|
|
|
|
|
canvas.drawColor(it.color) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
canvas.drawBitmap(bitmap, mMatrix, mPaint) |
|
|
|
canvas.drawBitmap(bitmap, mMatrix, mPaint) |
|
|
|
mPaint.colorFilter = null |
|
|
|
mPaint.colorFilter = null |
|
|
|
canvas.rotate(mDegrees, mBezierStart1.x, mBezierStart1.y) |
|
|
|
canvas.rotate(mDegrees, mBezierStart1.x, mBezierStart1.y) |
|
|
|