Skip to main content

BlurEffect Class

Contains blur effect properties.

Declaration

public class BlurEffect extends OfficeObject

Remarks

The following code snippet applies a blur effect to a shape:

import com.devexpress.docs.presentation.*;
import com.devexpress.docs.office.*;

// Get the first slide in the presentation.
Slide slide = presentation.getSlides().getFirst();

// Create a shape.
Shape shape = new Shape(ShapeType.getRectangle(), 50, 50, 2000, 1000);

// Apply a blur effect with a 5-point radius.
shape.getEffects().setBlur(new BlurEffect(5.0f, true));

// Add the shape to the first slide.
slide.getShapes().add(shape);

Inherited Members

com.devexpress.system.JavaObject.clone()
com.devexpress.system.JavaObject.equals(java.lang.Object)
com.devexpress.system.JavaObject.hashCode()
com.devexpress.system.JavaObject.initFields()
com.devexpress.system.JavaObject.memberwiseClone()
com.devexpress.system.JavaObject.toString()
java.lang.Object.finalize()
java.lang.Object.getClass()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)

Inheritance

Object
JavaObject
OfficeObject
BlurEffect

Constructors

BlurEffect() Constructor

Initializes a new instance of the BlurEffect class.

Declaration

public BlurEffect()

BlurEffect(float radius, boolean grow) Constructor

Initializes a new instance of the BlurEffect class with specified settings.

Declaration

public BlurEffect(float radius, boolean grow)

Parameters

Name Type Description
radius float

Specifies the blur radius in points.

grow boolean

Indicates whether the blur effect expands the object boundary.

Methods

deepClone() Method

Returns a deep copy of this BlurEffect instance.

Declaration

public BlurEffect deepClone()

Returns

Type Description
BlurEffect

A deep copy of this BlurEffect.

getGrow() Method

Returns whether the blur effect extends beyond the original bounds of the shape.

Declaration

public boolean getGrow()

Returns

Type Description
boolean

true if the blur effect extends beyond the original bounds of the shape; otherwise, false.

getRadius() Method

Returns the radius of the blur effect.

Declaration

public float getRadius()

Returns

Type Description
float

The radius of the blur effect.

setGrow(boolean value) Method

Sets whether the blur effect extends beyond the original bounds of the shape.

Declaration

public void setGrow(boolean value)

Parameters

Name Type Description
value boolean

true if the blur effect extends beyond the original bounds of the shape; otherwise, false.

setRadius(float value) Method

Sets the radius of the blur effect.

Declaration

public void setRadius(float value)

Parameters

Name Type Description
value float

The radius of the blur effect.