|
CopyRect | |
CopyRect SrcSurface, SrcX1, SrcY1, SrcX2, SrcY2, DestSurface, DestX, DestT | |
Parameters: SrcSurface = The Source Surface (image or Screen) to copy from SrcX1 = The source region X (Top left) coordinate SrcY1 = The source region Y (Top left) coordinate SrcX2 = The source region X (Bottom Right) coordinate SrcY2 = The source region Y (Bottom Right) coordinate DestSurface = The Destination Surface (image or Screen) to copy to DestX = The destination region X (Top left) coordinate DestT = The destination region Y (Top left) coordinate |
|
Returns: NONE | |
CopyRect copies a rectangular section of pixels from one graphics surface to another. This command can be used to copy between various surface combinations ie. screen->screen, Image->Screen, Screen->Image or Image->Image. Surfaces 0 = Screen 1 or above = Image FACTS: * CopyRect source and destination will be clipped to the destination surfaces viewport. * CopyRect treat an image index of zero as the screen. So CopyRect 0,10,10,20,20,1,100,100 is copying from the screen to image #1 * If you want to copy a section of an image and resize it, see TextureQuad command. Mini Tutorial:
|
Related Info: | CopyImage | CopyStripH | CopyStripV | GetImage | TextureQuad : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |