Fuze Arena Logo
  • Forum
  • Creations
    Catalogue Showcase
  • Help

drawImageEx()

Purpose

Draw a previously loaded image file (extended)

Description

Draws an image file at the specified location on the screen. The image can be scaled rotated and tinted

Syntax

drawImageEx( handle, location, rotation, scale, tint, origin )

Arguments

handle variable which stores the desired image file

location vector screen position to start drawing the image { x, y }

rotation angle to rotate image in default units

scale vector containing the horizontal and vertical scale factors { x, y }

tint colour name or RGB values { red, green, blue, opacity } between 0 and 1

origin origin point of the screen( default is { 0, 0 } which is the top left)

Example

image = loadImage( "Colin Brown/Dice", false )
location = { gWidth() / 2, gHeight() / 2 }
rotation = 0
scale = { 0.5, 0.5 }
tint = red
origin = { 0, 0 }
loop
    clear()
    rotation = rotation + 1
    drawImageEx( image, location, rotation, scale, tint, origin )
    update()
repeat

Associated Commands

clear(), createImage(), drawImage(), 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.