APLX Help
: System Classes
: Properties
: format
|
|||||||||||||||
![]() |
The 'format' property |
||||||||||||||
Valid for: Image, Grid Image objectCharacter Vector For an Image object, the format property is a text string which indicates the graphics format used to store the image on disk. After you have called the Load method to read an image file, the format property will reflect the original format of the file, for example 'JPEG' or 'GIF'. If you want to save the image in a different format, you can write a different string to the format property before calling the Save method. The list of supported formats can be read from the formats property. However, some of these may be valid for reading only - see the ImageMagick documentation for more details. Grid objectFor the Grid object, the format is a Cell property, where each cell element is a character vector. It determines the format used to display numeric values in cells of a Grid object. The format string is a character vector of up to three parts, where each part is separated by a semicolon. If you supply just one part, it applies to all numbers. If you supply two parts, the first applies to positive numbers or zero, and the second to negative numbers. If you supply all three parts, the first applies to numbers greater than zero, the second to less than zero, and the third to zero. Each part comprises a set of characters giving the format for the number. These comprise:
Setting this value automatically sets the cell type to Numeric. |
|||||||||||||||
APLX Help
: System Classes
: Properties
: format
|
Copyright © 1996-2010 MicroAPL Ltd