Giter Club home page Giter Club logo

puzzleview's Introduction

Hi there 👋, I'm wupanjie.

puzzleview's People

Contributors

daytonjallen avatar wuapnjie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

puzzleview's Issues

Adding more frames having polygon shapes

I wanted to ask if there is a way possible to add more frame layouts with polygon shapes. I tried making a hexagon, the shape is drawn but the area class doesn't allow the image to be applied to the shape.

对角斜线

可否支持对角斜线,或者指点一下思路

编辑点击图片事件。

我这边的UI要求点击图片弹出操作菜单做旋转这些操作。
浏览了下,好像已经有onPieceSelected没有实现。
还是已经有我没注意到,再烦请。

图片适配逻辑

` static Matrix createMatrix(Border border, int width, int height, float extraSize) {
final RectF rectF = border.getRect();

    Matrix matrix = new Matrix();

    float offsetX = rectF.centerX() - width / 2;
    float offsetY = rectF.centerY() - height / 2;

    matrix.postTranslate(offsetX, offsetY);

    float scale;

    if (width * rectF.height() > rectF.width() * height) {
        scale = (rectF.height() + extraSize) / height;
    } else {
        scale = (rectF.width() + extraSize) / width;
    }

    matrix.postScale(scale, scale, rectF.centerX(), rectF.centerY());

    return matrix;
}`

里面的if判断逻辑能解释一下么,我感觉有问题

关于图片替换的问题·

我在我的项目中使用我自己的图片选择图片选择图片替换,选择完成后一点反应也没有,但是如果用你demo中的那个图片选择库选择图片就可以替换成功,我在代码中打了断点,两个图片选择库连获取的图片路径都是一样的,不知道是什么原因

Selected

有禁止切换selected功能吗

改变尺寸会出现多余的线

比如我刚开始的尺寸是1:1,长这个样子:
11111
当我改变它的尺寸为4:3的时候,变成了这个样子:
22222
出现了多余的分割线
当我再次将它的尺寸变为1:1de的时候,分割线依然存在
33333

求问

为什么我的图片Border与调节图片长宽的那条线有空隙

ProcessActivity photo is in different order in contrast to compiled photo in MainActivity.

Hi,

When i selected multiple photos in mainactivity everything works fine, but when i choose one of the created layouts above the photo order is different in the processactivity. For example if i select 7 images, the layouts above are created and photo 1 is above and photo 7 is below. This order is differently in processactivity. This happens not always, you have to try a few different combinaties to reproduce this bug.
[
screenshot_2017-05-08-15-05-08
screenshot_2017-05-08-15-05-16

](url)

I hope it's easy to fix.

Keep up the good work!

Arkina

我觉得作者可以做这样一个实现

首先感谢作者无私的分享

其次这类的应用场景 我觉得多见于 类似微信 创建群组后的 默认群头像。群头像都是由群成员头像组拼而成。我觉得作者如果时间充裕可以做这样的 demo 感觉实际应用场景更多,我感觉作者精通此类技术 应该实现起来对你来说相对简单。预祝作者 star 爆棚 工作顺利
👍 Thanks

可否实现图片间距?

现在如果使用setBorderWidth,border颜色会直接覆盖在图片上面,图片无法展示完全,并且如果设置背景,背景无法透过图片间隔展现出来

How to detect size of internal boxes in Puzzle View?

I am using Puzzeleview and the output is very nice. when we select images from mobile some image is portrait and some are landscapes. Is there any way to get the exact size of one piece of Puzzle Layout before adding a bitmap to it?
please reply

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.