chengdazhi/StyleImageView
소개
ImageView, View의 배경, Drawable, Bitmap에 스타일과 필터를 추가하고 애니메이션 및 Bitmap 출력을 지원합니다.
디자인 및 미디어측정된 스타 증가
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- 0
- in 1 month
- -2
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalStyleImageView
Introduction

This library can set the style of ImageView/View background/Drawable/Bitmap and also brightness & 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.
If 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.
Note that this library uses ColorFilter to achieve effects. If you are using ColorFilter in your project, this may cause conflicts.
Try Sample
You can go to chengdazhi.com/styleimageview to download sample APK file or scan this QR code:

Feature
StyleImageView 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.
| Modes | Sea Shore | Boat and Houses |
|---|---|---|
| Original | ![]() |
![]() |
| Grey Scale | ![]() |
![]() |
| Invert | ![]() |
![]() |
| RGB to BGR | ![]() |
![]() |
| Sepia | ![]() |
![]() |
| Black & White | ![]() |
![]() |
| Bright | ![]() |
![]() |
| Vintage Pinhole | ![]() |
![]() |
| Kodachrome | ![]() |
![]() |
| Technicolor | ![]() |
![]() |
Some combinations I recommend:
- Invert + (150 brightness) + (2.0F contrast)
- Sepia + (-50 brightness) + (2.0F contrast)
- Kodachrome + (-100 brightness) + (1.6F contrast)
Try out the sample to find out more!
Import
Gradle
dependencies {
compile 'it.chengdazhi.styleimageview:styleimageview:1.0.4'
}
Maven
<dependency>
<groupId>it.chengdazhi.styleimageview</groupId>
<artifactId>styleimageview</artifactId>
<version>1.0.4</version>
<type>pom</type>
</dependency>
Usage
License
Copyright 2016 chengdazhi
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.
관련 프로젝트 살펴보기
불러오는 중…



















