CImage:Mul CImage:PolyFitDiv

CImage:Mulx


The Mulx method multiplies the pixel values by a constant value.

Syntax

bResult = CImage:Mulx( x )

bullet.gif    The value x may be passed as a number or a string.

bullet.gif    On success, this method returns true

bullet.gif    On failure, this method returns false.

Remarks

The value x can be passed as a numeric value or a string. Using a string is the only way to pass an rgb color value but it may also be used for numeric type images.

Example

The following script loads an image from the file sPath, multiplies by the value 1.054, and saves the result back to the file:

I = new_image()

-- create a new CImage

I:Open(sPath)

-- load the image from a file named sPath

I:Mulx( 1.054 )

-- perform the operation

I:Save()

 

Related Topics

CImage

 


Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024 Mirametrics, Inc. All Rights Reserved.