Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/QmDeve/QmBlurView-Docs/llms.txt

Use this file to discover all available pages before exploring further.

QmBlurView’s transform module integrates directly with Glide to apply real-time Gaussian blur effects to images as they are loaded. By passing a BlurTransformation instance into Glide’s RequestOptions, you can blur any image — remote or local — with full control over blur radius and rounded corners, without any additional post-processing step.
Both the QmBlurView transform module and the Glide library must be present in your dependencies before using BlurTransformation.
dependencies {
    // QmBlurView Transform dependency
    implementation 'com.qmdeve.blurview:transform:1.2.0'

    // Glide dependency
    implementation 'com.github.bumptech.glide:glide:5.0.7'
}

Import

Add the following import statements to your Java class:
// Glide main class
import com.bumptech.glide.Glide;

// QmBlurView blur transformation class
import com.qmdeve.blurview.transform.glide.BlurTransformation;

Usage Example

Pass a BlurTransformation instance via RequestOptions.transform() when loading an image with Glide. You can chain it with other transforms such as CenterCrop:
Glide.with(this)
    .load(R.drawable.image)
    .apply(new RequestOptions().transform(
           new CenterCrop(),
           new BlurTransformation(24f, 50)
       ))
    .into(imageView);

Constructor Reference

ConstructorDescription
BlurTransformation()Default blur radius 25f, no rounded corners
BlurTransformation(float blurRadius)Custom blur radius, no rounded corners
BlurTransformation(float blurRadius, float roundedCorners)Custom blur radius and rounded corners
You can chain BlurTransformation with other Glide transforms (e.g., CenterCrop) by listing them in order inside RequestOptions().transform(..., ...).

Build docs developers (and LLMs) love