1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/HarmonyOS-tpc-glide-transformations

Клонировать/Скачать
Внести вклад в разработку кода
Синхронизировать код
Отмена
Подсказка: Поскольку Git не поддерживает пустые директории, создание директории приведёт к созданию пустого файла .keep.
Loading...
README.md

Glide Transformations

Введение

Библиотека преобразований openharmony, предоставляющая различные преобразования изображений для Glide.

Инструкции по использованию

Установите Glide Transform.

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

Преобразования

Цвет

  • ColorFilterTransformation
  • GrayscaleTransformation

Размытие

  • BlurTransformation

Кадрирование

  • CropSquareTransformation

Инструкция по установке

Способ 1: Сгенерируйте пакет .har через библиотеку и добавьте пакет .har в папку libs. Добавьте следующий код в начальный gradle:

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

Способ 2: В build.gradle на уровне проекта:

allprojects{
    repositories{
        mavenCentral()
    }
}

Добавьте следующий код в начальный gradle:

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

Лицензия

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.

Комментарии ( 0 )

Вы можете оставить комментарий после Вход в систему

Введение

Описание недоступно Развернуть Свернуть
Apache-2.0
Отмена

Обновления

Пока нет обновлений

Участники

все

Язык

Недавние действия

Загрузить больше
Больше нет результатов для загрузки
1
https://api.gitlife.ru/oschina-mirror/HarmonyOS-tpc-glide-transformations.git
git@api.gitlife.ru:oschina-mirror/HarmonyOS-tpc-glide-transformations.git
oschina-mirror
HarmonyOS-tpc-glide-transformations
HarmonyOS-tpc-glide-transformations
main