Hi Roy,
Thank you very much for your nice suggestion. I did not think of using quad to
a image. Because the Lingo Dictionary says that it is a sprite property. Does
this usage is supported officially or undocumented lingo?
_____
Roy Pardi wrote:
> You're working too hard, man- use a quad:
>
> on flipH(img)
> buffer = image(img.width, img.height, img.depth)
> sRect = img.rect
> L = sRect[1]
> T = sRect[2]
> R = sRect[3]
> B = sRect[4]
>
> destQuad = [point(R, T), point(L, T), point(L, B), point(R, B)]
> buffer.copyPixels(img, destQuad,sRect)
>
> return buffer
> end
>
> called:
>
> member("xx").image = flipH(member("x").image)
Regards,
Fumio Nonaka
Attain Corporation
[EMAIL PROTECTED]
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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!]
- <lingo-l> flipH a bitmap Yariv Rosenstein
- Re: <lingo-l> flipH a bitmap Fumio Nonaka
- Re: <lingo-l> flipH a bitmap Roy Pardi
- Re: <lingo-l> flipH a bitmap Fumio Nonaka
- Re: <lingo-l> flipH a bitmap Roy Pardi
- RE: <lingo-l> flipH a bitmap Yariv Rosenstein
- Re: <lingo-l> flipH a bitmap James Newton
