Fuze Arena Logo
  • Forum
  • Creations
    Catalogue Showcase
  • Help

copyImage()

Purpose

Create a copy of an image

Description

Creates a copy of an image with adjustable source region

Syntax

handle = copyImage( imageHandle, source )

Arguments

handle Variable which will store the new image

imageHandle Handle of the image to copy

source Vector describing the desired region to copy

Example

// load image to copy
img = loadImage("Ansimuz/CyberpunkStreetLayer0")
// create copy with region x = 50, y = 50, width = 100, height = 100
img_copy = copyImage( img, { 50, 50, 100, 100 } )

// draw original image at top left of screen with a scale of 2
drawImage( img, 0, 0, 2 )
// draw copied image region at centre of screen with a scale of 3
drawImage( img_copy, gwidth() / 2, 0, 3 )

update()
sleep( 3 )

Associated Commands

clear(), createImage(), drawImage(), drawImageEx(), drawQuad(), drawSheet(), loadImage(), update(), uploadImage()

logo

©2019 FUZE Technologies Ltd. FUZE is a registered trademark of FUZE Technologies Ltd. All rights reserved.

Useful links

  • Fuze Main Site
  • Fuze Arena on Twitter
  • Fuze Arena on Youtube
  • Download Buyer

Contact Information

  • FUZE Technologies Ltd
    15 Clearfields Farm
    Wotton Underwood
    Aylesbury, Buckinghamshire
    ​England, HP18 0RS

  • +44 (0) 1844 239 432

  • contact@fuze.co.uk

© Copyright FUZE Technologies Ltd. All rights reserved.