Does resizing an image change number of bytes?
John Ridge
john.ridge at mac.com
Thu Sep 29 10:36:26 EDT 2005
I can't find "resizeQuality" in the documentation. Is it a new
feature, or am I just missing something obvious?
On 28 Sep 2005, at 05:55, Chipp Walters wrote:
> Steve,
>
> Here's a handy function to 'flatten' a resized imgage:
>
> on mouseUp
> put the id of img 1 into tImgID
> flattenImage tImgID
> end mouseUp
>
> on flattenImage pImgID
> get the rect of img ID pImgID
> set the rect of img ID pImgID to 0,0,10,10
> set the resizeQuality of img ID pImgID to best
> set the rect of img ID pImgID to it
> put the alphadata of img ID pImgID into tAD
> put the imagedata of img ID pImgID into tID
> set the alphadata of img ID pImgID to tAD
> set the imagedata of img ID pImgID to tID
> end flattenImage
>
Best wishes
John
ridge11103 at btinternet.com
More information about the use-livecode
mailing list