该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

ProMosaic

Make mosaic for image on android.

Features

Select Mode

  • Follow finger
  • Select rectangle

Effect Mode

  • Grid color based on original image
  • Blur Image
  • Pure grey color

Usage

Use MosaicView as normal android view:

<me.dawson.promosaic.MosaicView
        android:id="@+id/iv_content"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_below="@+id/ll_options"
        android:background="@color/grey_3"
        android:contentDescription="@string/app_name" />

Set properties in java code

mvImage.setSrcPath(filePath);
mvImage.clear();
mvImage.setEffect(Effect.BLUR);
mvImage.setMosaicColor(0xFF4D4D4D);
mvImage.setMode(Mode.PATH);

Demo

Contact me

Any further question?

Email me please!

License

    Copyright 2014 Dawson Dong
    
    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.

空文件

简介

暂无描述 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化