Converting a PicHandle to format for use with imageData

Thierry Arbellot thierry.arbellot at wanadoo.fr
Tue Dec 30 16:10:51 EST 2003


Okay, let's try something else.

I really think the problem is in the image resolution.

What about movieFrame.top and movieFrame.left ? Are there set to Zero ?

Otherwise, change the returned image size

rdata.length = (movieFrame.right-movieFrame.left) * 
(movieFrame.bottom-movieFrame.top) * 4;

On Tuesday, Dec 30, 2003, at 21:40 Europe/Paris, Trevor DeVore wrote:

> On Dec 30, 2003, at 1:24 PM, Thierry Arbellot wrote:
>
>> Looks like the image in Rev doesn't have the same width and height as 
>> the grabbed picture.
>> If it's the case, adjust the width and height before putting the 
>> picture into the imageData
>
> I have the image object set to the same size as the PixMap dimensions 
> which is 320 x 240.
>
> -- 
> Trevor DeVore
> Blue Mango Multimedia
> trevor at mangomultimedia.com
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list