Native-Blur: a C++/Kotlin library for blur bitmaps and activity, mobile-ready, android compatible

Overview

Native-Blur

The Native-Blur is a C++/Kotlin libraray for blur bitmaps and activity, mobile-ready, android compatible, powered by Java Native Interface(JNI) library for Android.

Demo application .apk file

Download .apk file from here

Features

  • Blur bitmap and resourses
  • Blure activty
  • Compress

Usage

For blur the Activty:

val overlayBlurView = OverlayBlurView(activity)
overlayBlurView.show()
overlayBlurView.hide()

With Xml support view:

<me.abolfazl.nativeblur.BlurView
    android:layout_width="match_parent"
    android:layout_height="march_parent"
    android:scaleType="centerCrop"
    android:src="@drawable/spacex"
    app:compress="true"
    app:radius="20" />

Directly Bitmap:

val source = BitmapFactory.decodeResource(resources, R.drawable.spacex2)
val bitmap = NativeBlur.blurBitmap(source, 10, false)
imageview.setImageDrawable(BitmapDrawable(resources, bitmap))

Installation

Add it in your root build.gradle at the end of repositories:

allprojects {
	repositories {
		maven { url 'https://jitpack.io' }
	}
}

Add the dependency

dependencies { 
    implementation 'com.github.aabolfazl:Native-Blur:1.0.0'
}

Images

benchmark

Memory allocation and Heap limit size for an application(in Java program throws an exception but in C++ done successfully)

Developed by

Reference

  • Stack Blur Algorithm by Mario Klingemann
  • Telegram open source project

SpaceX Image from @Daniel Sanchez Photography

License

MIT

Free Software developed for Teknasyon Üçbüyücü Turnuvası!

You might also like...
Android application compatible with ZX2C4's Pass command line application
Android application compatible with ZX2C4's Pass command line application

Password Store Download Documentation We're in the process of rewriting our documentation from scratch, and the work-in-progress state can be seen her

A convenient BMI (Body Mass Index) calculator that is compatible with Android devices.
A convenient BMI (Body Mass Index) calculator that is compatible with Android devices.

🔖 BMI Calculator A convenient BMI (Body Mass Index) calculator that is compatible with Android devices. 🖥 Please feel free to compute your BMI using

A webapp which generates a simple Discord profile banner image in real-time which shows user's status and activity.

DiscordProfileBanner This tool generates a Discord profile banner image in realtime. I wrote it for use in my AniList profile. An example in action: H

In this single activity app. i was trying to practice on ViewModel and Livedata

CalwithViewModel In this single activity app. i was trying to practice on ViewModel and Livedata Min Api Level : 19 Setup Requirements Android device

This project demonstrates the usage of Android Activity Recognition Transition API
This project demonstrates the usage of Android Activity Recognition Transition API

User Activity Detection This project demonstrates the usage of Android Activity Recognition Transition API. Detect when users start or end an activity

Open currenty activity in Android Studio

Open Current Activity Android Studio / IntelliJ Plugin A little plugin for Android development (Android Studio or IntelliJ). Adds an action under Navi

Mocking for Kotlin/Native and Kotlin Multiplatform using the Kotlin Symbol Processing API (KSP)

Mockative Mocking for Kotlin/Native and Kotlin Multiplatform using the Kotlin Symbol Processing API (KSP). Installation Mockative uses KSP to generate

FirestoreCleanArchitectureApp is an app built with Kotlin and Firestore that displays data in real-time using the MVVM Architecture Pattern. For the UI it uses Jetpack Compose,  Android's modern toolkit for building native UI.
FirestoreCleanArchitectureApp is an app built with Kotlin and Firestore that displays data in real-time using the MVVM Architecture Pattern. For the UI it uses Jetpack Compose, Android's modern toolkit for building native UI.

FirestoreCleanArchitectureApp FirestoreCleanArchitectureApp is an app built with Kotlin and Cloud Firestore that displays data in real-time using Andr

Template for building CLI tool in Kotlin and producing native binary

Kotlin command-line native tool template This template allows you to quickly build command-line tool using Kotlin , Clikt and build a native binary fo

Releases(v1.0.1)
Owner
Abolfazl Abbasi
At days Android engineer, at nights Embedded Linux developer and Electronic researcher
Abolfazl Abbasi
Team management service is a production ready and fully tested service that can be used as a template for a microservices development.

team-mgmt-service Description Team management service is a production ready and fully tested service that can be used as a template for a microservice

Albert Llousas Ortiz 18 Oct 10, 2022
Here is a ready to use JAICF bot template that utilises

JAICF Spring Bot template Here is a ready to use JAICF bot template that utilises Spring MongoDB Docker Prometheus Grafana Graylog How to use Please r

Just AI 1 Feb 13, 2022
Backend-aio - A ktor based ready to use backend

BackendAIO A ktor based ready to use backend BackendAIO is a project made to hel

Fabrizio Scarponi 2 Jan 24, 2022
🧶 Library to handling files for persistent storage with Google Cloud Storage and Amazon S3-compatible server, made in Kotlin

?? Remi Library to handling files for persistent storage with Google Cloud Storage and Amazon S3-compatible server, made in Kotlin! Why is this built?

Noelware 8 Dec 17, 2022
An AutoValue extension that generates binary and source compatible equivalent Kotlin data classes of AutoValue models.

AutoValue Kotlin auto-value-kotlin (AVK) is an AutoValue extension that generates binary-and-source-compatible, equivalent Kotlin data classes. This i

Slack 19 Aug 5, 2022
Framework for Mobile test automation (Native app and Browser) on Android and IOS devices

Appium Mobile Automation Framework Framework for Mobile test automation (Native app and Browser) on Android and IOS devices ?? ?? Quick Start - Appium

Thangaraj 40 Nov 18, 2022
Kotlin compiler plugin for converting suspend functions to platform-compatible functions

Kotlin suspend transform compiler plugin Summary Kotlin compiler plugin for generating platform-compatible functions for suspend functions. JVM class

ForteScarlet 5 Oct 12, 2022
Event State Processor Generator plugin is compatible with IntelliJ and Android Studio.

Event State Processor Generator plugin is compatible with IntelliJ and Android Studio. It provides source code generation for the EventStateProcessor Library to increase code productivity in Flutter apps development.

Extreme Vietnam Public 2 Dec 7, 2021
Simple event library to communicate between Activity/Fragment and ViewModel

Setup dependencies { implementation "com.github.skgmn:viewmodelevent:1.1.0" } If you don't know how to access to GitHub Packges, please refer to

null 4 Apr 6, 2022
A lightweight library for requesting and consuming Activity Results using coroutines.

SuspendActivityResult A lightweight library for requesting and consuming Activity Results using coroutines, it's usage is as simple as: val uri = Acti

Hicham Boushaba 71 Dec 23, 2022