Skip to content

Commit

Permalink
when scaletype is CENTER_INSIDE , It is invalid to change the backgro…
Browse files Browse the repository at this point in the history
…und color in GPUImageView by setBackgroundColor. It need be modified in GPUImageFilterGroup
  • Loading branch information
xuzhiyong committed Jul 22, 2021
1 parent e929601 commit 0702785
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.2'
classpath 'com.android.tools.build:gradle:4.2.0-beta04'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

// TODO: Close JCenter on May 1st https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
distributionUrl=https://services.gradle.org/distributions/gradle-6.7.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class ImageActivity : AppCompatActivity() {
GPUImageSharpenFilter())).apply {
setBackgroundColor(0.27f, 0.27f, 0.27f)
}
gpuImage.setBackgroundColor(1f,1f,1f)
gpuImage.setImage(Uri.parse("file:///android_asset/image.png"))
}
}

0 comments on commit 0702785

Please sign in to comment.