> i'm having a problem with a cast member that need's to be "flipV" by lingo > before i cant print it, and i can't use any sprite to to that. > does any one know a way to do this? > thank's in advance
Use imaging lingo and quads. --------- on flipImage imageToFlip sourceImage = member(imageToFlip).image.duplicate() destinationMember = new(#bitmap) destinationImage = image(sourceImage.width, sourceImage.height, sourceImage.depth) flipQuad = [point(0, destinationImage.height),\ point(destinationImage.width, destinationImage.height),\ point(destinationImage.width, 0),\ point(0, 0)] destinationImage.copyPixels(sourceImage, flipQuad, sourceImage.rect) destinationMember.image = destinationImage destinationImage = VOID sourceImage = VOID return destinationMember end --------- You would call the above like so: flippedImage = flipImage(imageToFlip) Look out for email-induced carriage returns in the above. The above does a straight vertical "mirror"... you can also rotate the image by playing with the quad. Quads are a list of the corner points of the image in this order: top left, top right, bottom right, bottom left. Lots of distortions are possible by moving these points around. HTH, Kurt [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!]
