PRIM_PDF.AutoTableRow - addImageCell Method

Adds an image cell to the table row

Member of PRIM_PDF.AutoTableRow (PRIM_PDF.AutoTableRow)

Parameters

NameTypeData TypeDescription
Bitmap*InputPRIM_BMPImage to add to the cell
ImageFileFormat*InputEnumerationImage file format
Width*InputFloatWidth of the image
Height*InputFloatHeight of the image
ImageCompression*Input (Optional)EnumerationCompression of the generated JPEG
Rotation*Input (Optional)IntegerRotation of the image in degrees (0-359)
HAlign*Input (Optional)EnumerationHorizontal alignment of image
VAlign*Input (Optional)EnumerationVertical alignment of image
FillColor*Input (Optional)ColorBackground color

Details

Adds an image cell to an AutoTable row.

Example

Add an image cell to AutoTable row
Define_Com Class(#PRIM_PDF.AutoTable) Name(#Table) Reference(*DYNAMIC) Theme(Striped) Columncount(1)
Define_Com Class(#PRIM_PDF.AutoTableRow) Name(#Row) Reference(*DYNAMIC)
Define_Com Class(#PRIM_BMP) Name(#myBitmap) Reference(*DYNAMIC)
 
* Create row
#Row <= #Table.CreateRow
 
* Add image
#myBitmap <= #Sys_Appln.CreateBitmap( '/myPath/myImage.jpg' )
#Row.addImageCell Bitmap(#myBitmap) Imagefileformat(jpg) Width(5) Height(5)
 
* Add row to table
#Table.AddRow Row(#Row)

ImageFileFormat Allowed Values

Enum ValueDescription
bmpBitmap
gifGraphic Interchange Format
pngPortable Network Graphics
jpgJoint Photographic Experts Group Standard

ImageCompression Allowed Values

Enum ValueDescription
NoneNo compression
FastFast compression
MediumMedium compression
SlowSlow and maximum compression

HAlign Allowed Values

Enum ValueDescription
LeftLeft aligned
RightRight aligned
CenterCentered

VAlign Allowed Values

Enum ValueDescription
TopTop aligned
MiddleMiddle aligned
BottomBottom aligned


 
 

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020