DVread_image


Synopsis

read an image file and output an AVS/Express field


module DVread_image {
string+Iparam filename; /* name of file to read */
int+Iparam flip; /* invert image in y */
int+Iparam filetype; /* file type */
Mesh_Unif+Dim2+Space2+Node_Data+Vector4+Oparam out; /* out field */
method+notify_val+notify_inst read_image_update = "DVread_image_update";
} ;

Description

DVread_image reads an image file of a specified type and converts it into an AVS/Express Field.

Input

filename

A string. Names the input file to be read. The string can be either the complete absolute pathname, or a relative pathname. If it is relative, it will be interpreted relative to the user's working directory when AVS/Express was started.

flip

Boolean indicating whether to invert the image about the x axis, i.e. in the vertical direction. The renderers assume that the image origin is at the lower left: toggle the flip param if the image is rendered upside-down.

filetype

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

•      AVS .x