Fandom

Livecode Wiki

Blur

2,161pages on
this wiki
Add New Page
Comments0 Share

Blur the imageData of an image by a given radius.

Syntax

blur pRadius, pOldImageDataVariable, pWidth, pHeight, pNewImageDataVariable, [pNewAlphaDataVariable, pFadeOut, pLeftFeather, pTopFeather, pRightFeather, pBottomFeather]

Parameters:

  • 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: (boolean) feather the left side. If not set it will be feathered
  • pTopFeather: (boolean) feather the top side. If not set it will be feathered
  • pRightFeather: (boolean) feather the right side. If not set it will be feathered
  • pBottomFeather: (boolean) feather the bottom side. If not set it will be feathered

Examples

Blur

blur example (click to see bigger)

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


In case of errors, the Return will contain an error message.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.