11.01.2013 Views

Oracle Forms Developer – Form Builder Reference, Volume 1

Oracle Forms Developer – Form Builder Reference, Volume 1

Oracle Forms Developer – Form Builder Reference, Volume 1

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

WRITE_IMAGE_FILE built-in<br />

Description<br />

Writes the image from a <strong>Form</strong> <strong>Builder</strong> image item into the specified file.<br />

Syntax<br />

WRITE_IMAGE_FILE<br />

(file_name VARCHAR2,<br />

file_type VARCHAR2,<br />

item_id ITEM,<br />

compression_quality NUMBER,<br />

image_depth NUMBER);<br />

WRITE_IMAGE_FILE<br />

(file_name VARCHAR2,<br />

file_type VARCHAR2,<br />

item_name VARCHAR2,<br />

compression_quality NUMBER,<br />

image_depth NUMBER);<br />

Built-in Type unrestricted procedure<br />

Enter Query Mode yes<br />

Parameters<br />

file_name The name of the file where the image is stored. The file name must adhere<br />

to your operating system requirements.<br />

file_type The file type of the image: BMP, CALS, GIF, JFIF, JPEG, PICT, RAS,<br />

TIFF, or TPIC. The parameter takes a VARCHAR2 argument.<br />

item_id The unique ID <strong>Form</strong> <strong>Builder</strong> assigned to the image item when you created<br />

it. Use the FIND_ITEM built-in to return the ID to an appropriately typed<br />

variable. Datatype is ITEM.<br />

item_name The name you gave the image item when you defined it. Datatype is<br />

VARCHAR2.<br />

compression_quality The degree of compression <strong>Form</strong> <strong>Builder</strong> will apply to the image when it<br />

stores it to the file (optional). Datatype is VARCHAR2. Valid values<br />

are:NO_COMPRESSION, MINIMIZE_COMPRESSION,<br />

LOW_COMPRESSION, MEDIUM_COMPRESSION,<br />

HIGH_COMPRESSION, MAXIMIZE_COMPRESSION<br />

image_depth The degree of depth <strong>Form</strong> <strong>Builder</strong> will apply to the image when it stores it<br />

to the file (optional). Datatype is VARCHAR2. Valid values<br />

are:ORIGINAL_DEPTH, MONOCHROME, GRAYSCALE, LUT<br />

(Lookup Table), RGB (Red, Green, Blue)<br />

WRITE_IMAGE_FILE restrictions<br />

• The indicated file type must be compatible with the actual file type of the image.<br />

• As with any file, if you write the image to an existing file, you overwrite the contents of that file<br />

468

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!