Class: BlurFilter

BlurFilter

BlurFilter クラスを使用すると、表示オブジェクトにぼかし効果を適用できます。
ぼかし効果は、イメージの細部をぼかします。ソフトフォーカスがかかっているように見えるぼかしから、
半透明ガラスを通してイメージを見るようにかすんで見えるガウスぼかしまで作成できます。
このフィルターの quality プロパティを低く設定すると、ソフトフォーカスがかかっているように見えるぼかしになります。
quality プロパティを高く設定すると、ガウスぼかしフィルターに似たものになります。

The BlurFilter class lets you apply a blur visual effect to display objects.
A blur effect softens the details of an image.
You can produce blurs that range from a softly unfocused look to a Gaussian blur,
a hazy appearance like viewing an image through semi-opaque glass.
When the quality property of this filter is set to low, the result is a softly unfocused look.
When the quality property is set to high, it approximates a Gaussian blur filter.

new next2d.filters.BlurFilter (blur_x, blur_y, quality)

NameTypeDefaultDescription
blur_xnumber4optional
blur_ynumber4optional
qualityint1optional

Extends

  • BitmapFilter

Members

next2d.filters.BlurFilter.namespace staticconstant

指定されたクラスの空間名を返します。
Returns the space name of the specified class.

Default Value:
  • next2d.filters.BlurFilter

blurX number

水平方向のぼかし量。
The amount of horizontal blur.

Default Value:
  • 4

blurY number

垂直方向のぼかし量。
The amount of vertical blur.

Default Value:
  • 4

namespace constant

指定されたオブジェクトの空間名を返します。
Returns the space name of the specified object.

Default Value:
  • next2d.filters.BlurFilter

quality number

ぼかしの実行回数です。
The number of times to perform the blur.

Default Value:
  • 1

Methods

next2d.filters.BlurFilter.toString ()string static

指定されたクラスのストリングを返します。
Returns the string representation of the specified class.

Default Value:
  • [class BlurFilter]
Returns:
TypeDescription
string

clone ()BlurFilter

オブジェクトのコピーを返します。
Returns a copy of this filter object.

Returns:
TypeDescription
BlurFilter

toString ()string

指定されたオブジェクトのストリングを返します。
Returns the string representation of the specified object.

Default Value:
  • [object BlurFilter]
Returns:
TypeDescription
string