1 Star 0 Fork 5

huangguofeng / glide-transformations

forked from tyBrave / glide-transformations 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 1.65 KB
一键复制 编辑 原始数据 按行查看 历史
Abhijith 提交于 2021-04-21 21:32 . update README.md.

Glide Transformations

Introduction

An openharmony transformation library providing a variety of image transformations for Glide.

Usage instructions

Set Glide Transform.

Glide.with(classcontext)
                        .load(ResourceTable.Media_demo_org)
                        .apply(RequestOptions.bitmapTransform(new GrayscaleTransformation()))
                        .into(imageview);

Transformations

Color

  • ColorFilterTransformation
  • GrayscaleTransformation

Blur

  • BlurTransformation

Crop

  • CropSquareTransformation

Installation instruction

Method 1: Generate the .har package through the library and add the .har package to the libs folder. Add the following code to the entry gradle:

implementation fileTree  (dir: 'libs', include: ['*.jar', '*.har'])

Method 2: In project level build.gradle:

allprojects{
    repositories{
        mavenCentral()
    }
}

Add the following code to the entry gradle:

implementation 'io.openharmony.tpc.thirdlib:glide-transformations:1.0.0'
implementation 'io.openharmony.tpc.thirdlib:glide:1.0.4'

License

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
1
https://gitee.com/huangguofeng0317/glide-transformations.git
git@gitee.com:huangguofeng0317/glide-transformations.git
huangguofeng0317
glide-transformations
glide-transformations
main

搜索帮助