Thanks a lot, your the man!
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Fumio Nonaka
Sent: Monday, November 20, 2000 2:37 AM
To: [EMAIL PROTECTED]
Subject: Re: <lingo-l> flipH a bitmap
Hi Yariv,
The following movie script creates new member horizontally flipped the
member
defined as a parameter to and returns the reference of new member.
[Test inf the message window]
put xFlipMemberH(member("Bitmap"))
-- (member 5 of castLib 1)
on xFlipMemberH memberRef
sourceImage = memberRef.image
sourceWidth = sourceImage.width
sourceHeight = sourceImage.height
newImage = image(sourceWidth, sourceHeight, memberRef.depth)
repeat with i = 1 to sourceWidth
destinationRect = rect(i - 1, 0, i, sourceHeight)
sourceRect = rect(sourceWidth - i, 0, sourceWidth - i + 1, sourceHeight)
newImage.copyPixels(sourceImage, destinationRect, sourceRect)
end repeat
newBitmap = new(#bitmap)
newBitmap.image = newImage
return newBitmap
end
_____
Yariv Rosenstein wrote:
> Is there a way to flipH a bitmap that isn't connected to a sprite?
> the flipH command is only applied to sprite.
Good luck,
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!]
[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
