Hi Michael,

Depends a little on your problem, what do you know about the images you will be trimming ? what size are they and will the white spaces be of equal width on each four sides ?

If the white spaces will be unequal and the images aren't too large or too many and you dont have to do it like every frame you could do some pixel checking using getPixel().

if the white spaces are always the same it's easier to do because u could calculate it by the proportions.

I'm sure there are some Xtra's which are faster at image processing, but I'm not sure which those are since I never had to use any.

please let us know!

Richard

From: "Michael von Aichberger" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED], Lingo programming discussion list <[email protected]>
To: "'Lingo programming discussion list'" <[email protected]>
Subject: <lingo-l> finding the coordinates of a trimwhitespace resultrelative to the source image
Date: Mon, 14 Feb 2005 16:06:10 +0100


Hi List,

I have an image object img1 and perform this command:

img2 = img1.trimWhiteSpace()

Is there a way to have the coordinates of the img2.rect relative to
img1.rect?

Any ideas? Thanks in advance!

Michael

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [email protected] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/


[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [email protected] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]

Reply via email to