Brightness and Contrast

yves COPPE yvescoppe at skynet.be
Wed Jan 16 02:21:01 EST 2002


>
>---------------
>The imageData property specifies the binary data that makes up the picture
>in an image object.
>
>Syntax:
>set the imageData of image to binaryData
>
>Examples:
>put the imageData of image ID 3577 into dateToAnalyze
>set the imageData of the mouseControl to the personalImage of this card
>
>Use the imageData property to process an image and display the processed
>version.
>
>Value:
>The imageData of an image consists of a sequence of binary values.
>
>Notes:
>Each pixel is represented by 32 bits (4 bytes) of image data, with pixels
>numbered from the top left corner of the image, left to right, then top to
>bottom. The first byte consists of zeroes, and the last three bytes encode
>the amount of red, green, and blue respectively.
>
>Since each pixel is represented by 4 bytes (4 characters), you can obtain
>the numeric value of any of the color channels for a given pixel using the
>charToNum function. For example, the numeric value of the red channel for
>the tenth pixel is given by the expression charToNum(char 10 + 1 of the
>imageData of image); the numeric value of the green channel is
>charToNum(char 10 + 2 of the imageData of image); and the numeric value of
>the blue channel is charToNum(char 10 + 3 of the imageData of image).
>---------------
>


is it possible to use de imagedata property to zzom in and out an image ?

Thanks.
-- 
Salutations.

Yves COPPE

Email : yvescoppe at skynet.be



More information about the use-livecode mailing list