# glide-transformations **Repository Path**: HarmonyOS-tpc/glide-transformations ## Basic Information - **Project Name**: glide-transformations - **Description**: An openharmony transformation library providing a variety of image transformations for Glide. - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 9 - **Forks**: 5 - **Created**: 2021-04-01 - **Last Updated**: 2023-08-28 ## Categories & Tags **Categories**: harmony **Tags**: None ## README ## Glide Transformations ## Introduction An openharmony transformation library providing a variety of image transformations for Glide. ## Usage instructions Set Glide Transform. ```java 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.