DgsImageGetImage

From Multi Theft Auto: Wiki

This function allows you to get the image from dgs image element.

Syntax

texture dgsImageGetImage ( element theElement )

Required Arguments

  • theElement: The dgs image element to get from.

Returns

Returns a texture element if there is an image loaded, false otherwise.

Example

DGS = exports.dgs
local texture = dxCreateTexture("text.png")  -- You need to add a texture yourself.
local myImage = DGS:dgsCreateImage ( 0.45, 0.48, 0.2, 0.5, texture, true )
local tex = DGS:dgsImageGetImage ( myImage )
destroyElement(tex)

See Also

Multi Language Supports

Animation

3D Interface

3D Text

Arrow List

Browser

Button

Check Box

Combo Box

Edit

Ellipse Detect Area

Detect Area

Grid List

Image

Memo

Label

Progress Bar

Radio Button

Scroll Bar

Scroll Pane

Switch Button

Tab Panel

Window

Plugin

Media Browser

Rounded Rectangle

Color Picker

Blur Box

Effect 3D