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

OSCHINA-MIRROR/HarmonyOS-tpc-glide-transformations

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
README.md 2 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
gitlife-traslator Отправлено 29.11.2024 08:37 fc11b10

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 )

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

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