{"id":13643924,"url":"https://github.com/chengdazhi/StyleImageView","last_synced_at":"2025-04-21T06:32:08.336Z","repository":{"id":41811626,"uuid":"65899951","full_name":"chengdazhi/StyleImageView","owner":"chengdazhi","description":"Add styles and filters to ImageViews, Views' backgroud, Drawables and Bitmaps, with animation and bitmap output.","archived":false,"fork":false,"pushed_at":"2017-01-17T04:48:26.000Z","size":8917,"stargazers_count":1450,"open_issues_count":2,"forks_count":147,"subscribers_count":31,"default_branch":"master","last_synced_at":"2025-04-12T16:53:00.055Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chengdazhi.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":"2016-08-17T10:49:18.000Z","updated_at":"2025-03-31T09:54:30.000Z","dependencies_parsed_at":"2022-08-28T16:11:45.663Z","dependency_job_id":null,"html_url":"https://github.com/chengdazhi/StyleImageView","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chengdazhi%2FStyleImageView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chengdazhi%2FStyleImageView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chengdazhi%2FStyleImageView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chengdazhi%2FStyleImageView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chengdazhi","download_url":"https://codeload.github.com/chengdazhi/StyleImageView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250008232,"owners_count":21359951,"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-02T01:01:54.876Z","updated_at":"2025-04-21T06:32:03.327Z","avatar_url":"https://github.com/chengdazhi.png","language":"Java","readme":"# StyleImageView\n\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-StyleImageView-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/4246)\n\n## Introduction\n\n![gif_sample](./images/style_sample.gif)\n\n[中文见这里](https://github.com/chengdazhi/StyleImageView/wiki/%E4%B8%AD%E6%96%87%E8%AF%B4%E6%98%8E%E9%A1%B5)\n\nThis library can set the style of ImageView/View background/Drawable/Bitmap and also brightness \u0026 contrast. This library now supports 10 different styles, you can check them out below. You can enable animation, and choose to set Interpolators and Listeners. You can acquire the Bitmap of ImageView/View/Drawable after style is set.\n\nIf you only need to operate ImageViews, you can use the StyleImageView class. You can specify attributes from layout file. If you are already using custom ImageViews, or you want to operate on View's background, or any Drawable or Bitmap, you can use the Styler class.\n\n**Note that this library uses ColorFilter to achieve effects. If you are using ColorFilter in your project, this may cause conflicts.**\n\n\n## Try Sample\n\nYou can go to [chengdazhi.com/styleimageview](http://chengdazhi.com/styleimageview) to download sample APK file or scan this QR code:\n\n![qr](./images/style_image_view_qr.png)\n\n## Feature\n\nStyleImageView supports 10 styles as follow. Note that you can set brightness and contrast on top of them. Example of Saturation mode is not listed, since this mode needs a saturation input.\n\n| Modes           | Sea Shore | Boat and Houses |\n| --------------- | --------- | --------------- |\n| Original        | ![sea_original](./images/sea_original.png) | ![boat_original](./images/boat_original.png) |\n| Grey Scale      | ![sea_grey_scale](./images/sea_grey_scale.png) | ![boat_grey_scale](./images/boat_grey_scale.png) |\n| Invert          | ![sea_invert](./images/sea_invert.png) | ![boat_invert](./images/boat_invert.png) |\n| RGB to BGR      | ![sea_rgb_to_bgr](./images/sea_rgb_to_bgr.png) | ![boat_rgb_to_bgr](./images/boat_rgb_to_bgr.png) |\n| Sepia           | ![sea_sepia](./images/sea_sepia.png) | ![boat_sepia](./images/boat_sepia.png) |\n| Black \u0026 White   | ![sea_black_and_white](./images/sea_black_and_white.png) | ![boat_black_and_white](./images/boat_black_and_white.png) |\n| Bright          | ![sea_bright](./images/sea_bright.png) | ![boat_bright](./images/boat_bright.png) |\n| Vintage Pinhole | ![sea_vintage_pinhole](./images/sea_vintage_pinhole.png) | ![boat_vintage_pinhole](./images/boat_vintage_pinhole.png) |\n| Kodachrome      | ![sea_kodachrome](./images/sea_kodachrome.png) | ![boat_kodachrome](./images/boat_kodachrome.png) |\n| Technicolor     | ![sea_technicolor](./images/sea_technicolor.png) | ![boat_technicolor](./images/boat_technicolor.png) |\n\nSome combinations I recommend:\n\n* Invert + (150 brightness) + (2.0F contrast)\n* Sepia + (-50 brightness) + (2.0F contrast)\n* Kodachrome + (-100 brightness) + (1.6F contrast)\n\n**Try out the sample to find out more!**\n\n## Import\n\nGradle\n\n    dependencies {\n        compile 'it.chengdazhi.styleimageview:styleimageview:1.0.4'\n    }\n\nMaven\n\n    \u003cdependency\u003e\n        \u003cgroupId\u003eit.chengdazhi.styleimageview\u003c/groupId\u003e\n        \u003cartifactId\u003estyleimageview\u003c/artifactId\u003e\n        \u003cversion\u003e1.0.4\u003c/version\u003e\n        \u003ctype\u003epom\u003c/type\u003e\n    \u003c/dependency\u003e\n\n## Usage\n\nSee [Wiki](https://github.com/chengdazhi/StyleImageView/wiki) or [中文版](https://github.com/chengdazhi/StyleImageView/wiki/%E4%B8%AD%E6%96%87%E8%AF%B4%E6%98%8E%E9%A1%B5)\n\n## License\n\n    Copyright 2016 chengdazhi\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","funding_links":[],"categories":["图片"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchengdazhi%2FStyleImageView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchengdazhi%2FStyleImageView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchengdazhi%2FStyleImageView/lists"}