public interface KBlurParametersBuilderType
Modifier and Type | Method and Description |
---|---|
KBlurParameters |
build() |
void |
setBlurSize(float size)
Set the blur size.
|
void |
setPasses(int passes)
Set the number of passes.
|
void |
setScale(float scale)
The amount of downsampling to be performed during blurring.
|
KBlurParameters build()
void setBlurSize(float size)
Set the blur size. A blur size larger than 1.0
will
typically result in visible banding.
The default is 1.0
.
size
- The size of the blur effect.void setPasses(int passes)
Set the number of passes. A greater number of passes will strengthen the
effect of the blur at the cost of processing time. A value of
0
will result in no blur being applied at all.
The default is 1
.
passes
- The number of passesvoid setScale(float scale)
The amount of downsampling to be performed during blurring. A value of
1.0
implies no scaling. A value of 0.5
will
halve the width and height of the original image before blurring. The
more downsampling applied, the stronger the effect of the blur (but the
greater the loss of image precision).
The default is 1
.
scale
- The coefficient by which to multiply the dimensions of the imageCopyright © 2015 <code@io7m.com> http://io7m.com