blur

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
blur <pRadius>, <pOldImageDataVariable>, <pWidth>, <pHeight>, <pNewImageDataVariable>, [<pNewAlphaDataVariable>, <pFadeOut>, <pLeftFeather>, <pTopFeather>, <pRightFeather>, <pBottomFeather>]
Associationsblur
Summary

Blur the imageData of an image by a given radius.

Introduced8.0
OSios, android, linux, mac, windows
Platformsmobile, desktop, server
Parameters
NameTypeDescription
pRadius

blur radius

pOldImageDataVariable

name of variable containing image data

pWidth

image width

pHeight

image height

pNewImageDataVariable

name of variable to output new image data to

pNewAlphaDataVariable

optional name of variable to output alpha data to

pFadeOut

number of pixels to alpha fade out. Default is 5.

pLeftFeather

feather the left side. If not set it will be feathered

pTopFeather

feather the top side. If not set it will be feathered

pRightFeather

feather the right side. If not set it will be feathered

pBottomFeather

feather the bottom side. If not set it will be feathered

Example
 local theOriginalImageData,theNewImageData
 put the imageData of image 1 into theOriginalImageData
 blur 5,"theOriginalImageData",the width of image 1,the height of image 1,"theNewImageData"
 set the imageData of image 2 to theNewImageData

Values
NameTypeDescription
return

An error message

Description

Blur the imageData of an image by a given radius.

Tagsexternals