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!]

Reply via email to