Read_Image


Synopsis

read an image file and output an AVS/Express field

Input Port

ui_parent

user interface parent object

 

Parameters

Read IMAGE Filename

UIfileSB

pick file to input

flip

UItoggle

invert boolean

format

UIradioBox

file format

 

Output Port

field

Mesh_Unif + Dim2 + Space2

image

output renderable object

 

Description

Read_Image reads an image file and converts it into an AVS/Express Field.

Input Port

ui_parent

A port to connect to a user interface object that contains the macro's widgets. By default, it is connected to the default user interface object in the application in which the macro is instanced. (This default connection is not drawn.)

Parameters

Read IMAGE Filename

File browser. Selects the disk file to input and convert. The default search pattern is $XP_PATH<0>/data/image/*.

flip

Boolean indicating whether to invert the image about the x axis, that is, in the vertical direction.

format

An integer value indicating the file format. A value of 0 causes the format to be determined from the file itself by looking at the id information in the header, or by using the filename extension. Other values indicate the format explicitly. The following image formats are currently supported:

AVS .x