MergeShape
MergeShape SourceShapeIndex, DestShapeIndex
 
Parameters:

    SourceShapeIndex = The Source Index of the shape you wish to merge from
    DestShapeIndex = The Dest shape Index of where the source should be merged with
Returns: NONE
 

     MergeShape merges the vertex and edges from the source shape into the destination shape.



FACTS:


     * None



Mini Tutorial:


      This example creates two convex shapes, merges them together, then rotates and draws the original shape and new merged shape.


  
  
  
; Create a Convex MySHape, of size 50, with 6 edges
  MyShape=NewConvexShape(50,6)
  
; Create a Convex Shape, of size 26, with 6 edges
  MergedShape=NewConvexShape(25,6)
  
; Merge the Vertex/edges from MYSHAPE with
; MERGEDSHAPE, to create a DONUT styled shape
  MergeShape MyShape,MergedShape
  
; Draw the Filled shape
  DrawShape MyShape,100,100,2
  
  
; Draw the Filled shape
  DrawShape MergedShape,250,100,2
  
; Display the screen and wait for a key press
  Sync
  WaitKey
  



This example outputs.






 
Related Info: CreateConvexShape | CreateShape | LoadShape | NewConvexShape | NewShape | SaveShape | ScaleShape | ScaleShapeXY | ShiftShape :
 


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