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
Inheritance
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 |
getGrow() Method
Returns whether the blur effect extends beyond the original bounds of the shape.
Declaration
public boolean getGrow()
Returns
| Type | Description |
|---|---|
| boolean |
|
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 |
|
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. |