CopyShape
CopyShape SourceShapeIndex, DestShapeIndex
 
Parameters:

    SourceShapeIndex = The Source Index of the shape you wish to copy
    DestShapeIndex = The Dest shape Index of where the source should be copied to
Returns: NONE
 

     CopyShape copies a complete vector shape to a free shape index. The copy will be identical to the original, but it's completely separate copy.



FACTS:


     * CopyShape will automatically replace any existing shape data if you happen to provided it with a destination shape that already exists.




Mini Tutorial:


      This example creates a convex shape, grabs a free shape index, then copies our original shape to the new shape index.

  
  
; Create a Convex MySHape, of size 50, with 6 edges
  MyShape=NewConvexShape(50,6)
  
  
; Define a variable, and grab a free shape Index
  CopiedShape = GetFreeShape()
  
; Make a copy of MYSHAPE
  CopyShape MyShape,CopiedShape
  
  
; Draw the Filled shape
  DrawShape MyShape,100,100,2
  
; Draw the Filled shape
  DrawShape CopiedShape,250,100,2
  
; Display the screen and wait for a key press
  Sync
  WaitKey
  
  



This example would output.

  
  no Text output
  

 
Related Info: GetFreeShape | LoadShape | NewConvexShape | NewShape | SaveShape :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com