Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/devnied/androidbitmaptransform

AndroidBitmapTransform is an useful library to do Bitmap transformation on Android.
https://github.com/devnied/androidbitmaptransform

android bitmaps library

Last synced: 11 days ago
JSON representation

AndroidBitmapTransform is an useful library to do Bitmap transformation on Android.

Awesome Lists containing this project

README

        

AndroidBitmapTransform [![Build Status](https://travis-ci.org/devnied/AndroidBitmapTransform.png?branch=master)](https://travis-ci.org/devnied/AndroidBitmapTransform) [![Android Arsenal](http://img.shields.io/badge/Android%20Arsenal-Android--BitmapTransform-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/3504)
======================

AndroidBitmapTransform is an useful library to do Bitmap transformation on Android.

[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.devnied.AndroidBitmapTransform/library/badge.svg?style=flat)](https://maven-badges.herokuapp.com/maven-central/com.github.devnied.AndroidBitmapTransform/library)

##Simple API

It is very easy to get started with AndroidBitmapTransform:

**Exemple to Multiply two bitmaps**

```java
ImageView view = (ImageView) findViewById(R.id.bitmapResult);
Bitmap bitmap = BitmapTransform.createBitmap(this,R.drawable.dst, R.drawable.src, PorterDuff.Mode.MULTIPLY, true, false);
view.setImageBitmap(bitmap);
```

**Exemple to Add two bitmaps**

```java
ImageView view = (ImageView) findViewById(R.id.bitmapResult);
Bitmap bitmap = BitmapTransform.createBitmap(this,R.drawable.dst, R.drawable.src, PorterDuff.Mode.ADD, true, false);
view.setImageBitmap(bitmap);
```

**List of PorterDuff modes**

![](https://raw.github.com/devnied/AndroidBitmapTransform/master/%20Xfermodes.png)

## Maven

```xml

com.github.devnied.AndroidBitmapTransform
library
1.0.0

```

## Bugs

Please report bugs and feature requests to the GitHub issue tracker.

Forks and Pull Requests are also welcome.

## Author

**Millau Julien**

+ [http://twitter.com/devnied](http://twitter.com/devnied)
+ [http://github.com/devnied](http://github.com/devnied)

## Copyright and license

Copyright 2013 Millau Julien.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this work except in compliance with the License.
You may obtain a copy of the License in the LICENSE file, or at:

[http://www.apache.org/licenses/LICENSE-2.0](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.