ImageData broken for small images...

Brian Yennie briany at qldlearning.com
Sat Apr 2 04:57:36 EST 2005


Sounds like 'Zilla material to me, but if you're desperate for a dirty 
workaround, you could try taking your 4x4 (or less) imageData and 
scaling it byte-by-byte to 8x8, and then scaling the target image 
object down again by 50%. You'd still have 8x8 imageData, but a 4x4 
image... (like I said, dirty...). That should work at least if the 
small imageData is truly the source of engine problems.

- Brian

> I've got a problem and maybe someone here can help. I think this is 
> probably a bug in the engine.
>
> import snapshot from rect 0,0,3,3
> crashes Rev in WinXP and makes an image with no imageData on MacOSX
>
> (or any rectangle with either width <5 or height <5)
>
> So, I wrote a nifty routine to grab the imagedata from a rect. But, it 
> turns out trying to set the imagedata of an image smaller than 5x5 
> won't work at all. It sets the imageData to empty instead. Confirmed 
> on both Mac and PC.
>
> So, I thought, capture the image larger and then crop it. Again more 
> crashes. Has anyone else a fix for this or should I just bugzilla it?
>
> TIA,
>
> Chipp
>
> _______________________________________________
> 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