{"id":13537798,"url":"https://github.com/sephiroth74/ImageViewZoom","last_synced_at":"2025-04-02T04:31:32.075Z","repository":{"id":3593702,"uuid":"4657583","full_name":"sephiroth74/ImageViewZoom","owner":"sephiroth74","description":"Android ImageView widget with zoom and pan capabilities","archived":false,"fork":false,"pushed_at":"2017-10-21T18:07:00.000Z","size":601,"stargazers_count":1895,"open_issues_count":74,"forks_count":533,"subscribers_count":114,"default_branch":"master","last_synced_at":"2024-10-29T17:42:01.824Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sephiroth74.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-06-14T00:11:22.000Z","updated_at":"2024-10-17T03:38:35.000Z","dependencies_parsed_at":"2022-09-10T22:11:42.231Z","dependency_job_id":null,"html_url":"https://github.com/sephiroth74/ImageViewZoom","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sephiroth74%2FImageViewZoom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sephiroth74%2FImageViewZoom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sephiroth74%2FImageViewZoom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sephiroth74%2FImageViewZoom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sephiroth74","download_url":"https://codeload.github.com/sephiroth74/ImageViewZoom/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246757343,"owners_count":20828884,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T09:01:03.784Z","updated_at":"2025-04-02T04:31:27.046Z","avatar_url":"https://github.com/sephiroth74.png","language":"Java","readme":"ImageViewTouch for Android\n===\n[![Badge](http://www.libtastic.com/static/osbadges/241.png)](http://www.libtastic.com/technology/241/)\n\n[![Build Status](https://travis-ci.org/sephiroth74/ImageViewZoom.svg?branch=master)](https://travis-ci.org/sephiroth74/ImageViewZoom)\n[ ![Download](https://api.bintray.com/packages/bintray/jcenter/it.sephiroth.android.library.imagezoom%3Aimagezoom/images/download.svg) ](https://bintray.com/bintray/jcenter/it.sephiroth.android.library.imagezoom%3Aimagezoom/_latestVersion)\n\n\n\nImageViewTouch is an android `ImageView` widget with zoom and pan capabilities.\nThis is an implementation of the ImageView widget used in the Gallery app of the Android opensource project.\n\nCheckout the repository and run the **ImageViewTouchTest** project to see how it works.\nBeside the superclass **setImageBitmap** method it offers the following methods:\n\n* `setImageBitmap( final Bitmap bitmap, Matrix matrix );`\n* `setImageBitmap( final Bitmap bitmap, Matrix matrix, float minZoom, float maxZoom );`\n\n\nIf you want to load a new Bitmap with a particular zoom/pan state (let's say the same from another ImageView ), you can call:\n\n\tMatrix matrix = mImageView1.getDisplayMatrix();\n\tmImageView2.setImageBitmap( bitmap, matrix );\n\n\n## Tweaks\n\nThe initial display state can be set, using `public void setDisplayType( DisplayType type )`, as:\n\n* `DisplayType.FIT_TO_SCREEN`: The image loaded will always fit the current view's bounds.\n* `DisplayType.NONE`: The image will be presented with its current dimensions if smaller than the image bounds, otherwise it will be scaled to fit its contents inside the screen.\n* `DisplayType.FIT_HEIGHT`: The image loaded will always fit the height of the current view.\n* `DisplayType.FIT_WIDTH`: The image loaded will always fit the width of the current view. \n\nThe default display state is `DisplayState.NONE'.\n\n\n##Usage (Maven)\n    \u003cdependency\u003e\n        \u003cgroupId\u003eit.sephiroth.android.library.imagezoom\u003c/groupId\u003e\n        \u003cartifactId\u003eimagezoom\u003c/artifactId\u003e\n        \u003cversion\u003e2.3.0\u003c/version\u003e\n    \u003c/dependency\u003e\n\n##Usage (Gradle)\n\n\tdependencies {\n\t\tcompile 'it.sephiroth.android.library.imagezoom:imagezoom:+'\n\t}\n\n##LICENSE\n\nThis software is provided under the MIT license:\u003cbr /\u003e\nhttp://opensource.org/licenses/mit-license.php\n\n\n##Author\n\n[Alessandro Crugnola](http://blog.sephiroth.it)\n","funding_links":[],"categories":["Java","图片","Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsephiroth74%2FImageViewZoom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsephiroth74%2FImageViewZoom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsephiroth74%2FImageViewZoom/lists"}