FOM Reference > Content > Tags > fRaster interface
  
fRaster interface
This object represents a raster graphic, and contains the properties and methods for manipulating its contents.
This object inherits from fTag.
RasterFileType enumeration
Which type of raster file to import.
The RasterFileType enumeration has the following constants of type int.
FT_AUTO = -1
Attempt to automatically detect the file type.
FT_GEM = 1
GEM
FT_TIFF = 2
TIFF
FT_PCX = 3
PCX
FT_PICT = 4
PICT
FT_GIF = 5
GIF
FT_EPS = 6
EPS
FT_BMP = 7
BMP
FT_JPEG = 8
JPG
FT_OLE = 9
OLE
FT_PNG = 10
PNG
FT_PDF = 11
PDF
FT_U3D = 12
U3D
FT_AUDIO = 13
MP3 Audio file
FT_VIDEO = 14
MP4 or FLV Video file
FT_FLASH = 15
SWF file
RasterGraphicType enumeration
The type of raster loaded.
The RasterGraphicType enumeration has the following constants of type int.
GT_BITMAP = 100
Bitmap
GT_MONOCHROME = 101
Monochrome
GT_RGB = 102
RGB
GT_PICT = 103
PICT
GT_PALETTE = 104
Palette
GT_CMYK = 105
CMYK
GT_OLE = 106
OLE
PDFBoxType enumeration
The PDF box of raster loaded.
The PDFBoxType enumeration has the following constants of type int.
PDFBOX_DEFAULT = -1
The default box.
PDFBOX_ART = 0
The Art box.
PDFBOX_BLEED = 1
The Bleed box.
PDFBOX_CROP = 2
The Crop box.
PDFBOX_MEDIA = 3
The Media box.
PDFBOX_TRIM = 4
The Trim box.
RasterLowresModes enumeration
Whether to import the raster in a lowres mode for displaying on screen.
The RasterLowresModes enumeration has the following constants of type int.
LOWRES_NONE = 0
Import the raster at full size.
LOWRES_FILESIZE = 1
Import the raster using a maximum amount of memory.
LOWRES_RESOLUTION = 3
Import the raster using a maximum resolution.
bitsPerPixel attribute
The resolution of the raster.
bitsPerPixel
Access
read-only
Returns
int
fileType attribute
The type of raster. Value is one of fRaster.RasterFileType.
fileType
Access
read-only
Returns
int
filename attribute
The source filename for the raster.
filename
Access
read-only
Returns
String
graphicType attribute
The type of raster. Value is one of fRaster.RasterGraphicType.
graphicType
Access
read-only
Returns
int
hasClipMask attribute
If true, the image has a clipping mask.
hasClipMask
Access
read-only
Returns
boolean
hasClipPath attribute
If true, the image has a clipping path.
hasClipPath
Access
read-only
Returns
boolean
height attribute
The height of the raster.
height
Access
read-only
Returns
fLength
imageComment attribute
The comment associated with the image.
imageComment
Access
read-only
Returns
String
isFlopped attribute
If true, the image is flopped.
isFlopped
Access
read-only
Returns
boolean
isMirrored attribute
If true, the image is mirrored.
isMirrored
Access
read-only
Returns
boolean
maxPages attribute
The total number of pages available in the PDF, if type is fRaster.FT_PDF.
maxPages
Access
read-only
Returns
int
page attribute
The page number the raster was imported from, if type is fRaster.FT_PDF.
page
Access
read-only
Returns
int
pixelHeight attribute
The height of the image in pixels.
pixelHeight
Access
read-only
Returns
int
pixelWidth attribute
The width of the image in pixels.
pixelWidth
Access
read-only
Returns
int
rotation attribute
The angle the image is rotated.
rotation
Access
read-only
Returns
int
u3dViews attribute
The list of the views available, if type is fRaster.FT_U3D.
u3dViews
Access
read-only
Returns
fStringArray
width attribute
The width of the raster.
width
Access
read-only
Returns
fLength