Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
TRAX
Sprite Blender - Distance
27 Sum Game-Game Fields
Get Rect of Vertexlist
DmySQL - mySQL backend for Director 'baby' version
Pauseable Timer with Progress Bar
Drop Shadow Static-Alphamania
Set PlayBackMode of a Flash Sprite
Slider Puzzle by J.R.D.R.
Least Common Denominator
MediaMacros Xtras Mall
 

 

 

Behavior Flip Image Algorithm - Imaging Lingo

Added on 8/23/2005

 

Compatibilities:
D8 D8_5 D9 Mac Parent PC Shockwave

This item has not yet been rated

Author: Chunick (website)

This code will flip your image.

on flipImage (anImage, aFlip)
  --------------------------------------------------------------------
  -- original code by Luke Wigley www.lingoworkshop.com
  -- I added the flip parameter.
  -- aFlip can be these values: #flipV, #flipH, #flipVH
  --------------------------------------------------------------------
  aRect = anImage.rect
  aQuad = [point(0,0), point(aRect.width,0), point(aRect.width,aRect.height), point(0,aRect.height)]
  Case aFlip of
    #flipV:
      newQuad = [aQuad[4], aQuad[3], aQuad[2], aQuad[1]]
    #flipH:
      newQuad = [aQuad[2], aQuad[1], aQuad[4], aQuad[3]]
    #flipVH:
      newQuad = [aQuad[3], aQuad[4], aQuad[1], aQuad[2]]
  end Case
  newImage = image(anImage.width, anImage.height, anImage.depth)
  newImage.copyPixels(anImage, newQuad, aRect)
  return newImage
end  

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail