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

OSCHINA-MIRROR/archermind-ti-ohos-imagecropview

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

Ohos-imagecropview

项目介绍

从具有图库或相机中选择图像进行裁剪保存,可让您实现图像裁剪,通过在固定裁剪区域下移动图像来裁剪图像。

效果图

image

安装教程

方式一:

  1. 下载模块代码添加到自己的工程

  2. 关联使用

dependencies {
   compile project(path: ':simplecropview')
   api 'io.openharmony.tpc.thirdlib:glide:1.0.4'
 ……
}

3.在系统的settings.gradle中添加

include ':entry',':simplecropview'

方式二

  1. 在module的build.gradle中添加依赖

    dependencies {
        implementation fileTree(dir: 'libs', include: ['*.jar', '*.har'])
        ……
        implementation 'com.gitee.archermind-ti:imagecropview:1.0.1-alpha'
    }
  2. 在project的build.gradle中添加mavenCentral()的引用

    allprojects {
        repositories {
            ……
            mavenCentral()
        }
    }

使用说明

2.1 在config.json文件中,添加存储权限。

  "reqPermissions": [
  {
  ohos.permission.READ_USER_STORAGE
  },
]     

2.2 查询图库

    checkPictureGalleryList(){
    ......
    }

2.3 展示图片

    pickFromGalleryList(){
    ......
    }

2.4 点击获取随机图片,并展示

onclickTouchMe(){
......}

2.5 对图片进行处理 点击 lAUNCH EDITOR,打开图片处理功能,此时可对图片进一步进行处理。

版本迭代

  • v1.0.1-alpha

License


    Copyright (c) 2015 Naver Corp.
    @Author Ohkyun Kim

    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/archermind-ti-ohos-imagecropview.git
git@api.gitlife.ru:oschina-mirror/archermind-ti-ohos-imagecropview.git
oschina-mirror
archermind-ti-ohos-imagecropview
archermind-ti-ohos-imagecropview
master