Yariv Rosenstein <[EMAIL PROTECTED]> wrote:
> Is there a way to flipH a bitmap that isn't connected to a sprite?
> the flipH command is only applied to sprite.

Hi Yariv,

You can use copyPixels with a quad so that the image is inverted.

Try this in the message window, assuming you have a bitmap member in
cast slot 1:

memberImage  = member(1).image
memberWidth  = memberImage.width
memberHeight = memberImage.height
-- The following is one continuous line:
flipHQuad    = [point(memberWidth, 0), point(0, 0), point(0,
memberHeight), point(memberWidth, memberHeight)]

(memberImage).copyPixels(memberImage, flipHQuad, memberImage.rect)

Cheers,

James


[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