Image manipulation
Create a image
View code
<eBD:TMPFILE TABLE="Noticias" IDFIELD="idNoticias" IDVALUE="1" FIELD="Foto" VAR="tmpimg"/>
<eBD:IMGCREATE TMPFILE="tmpimg" VAR="img"/>
Image info
Height: Width:
View code
<eBD:IMGINFO IMG="img" WIDTH="w" HEIGHT="h"/>
<eBD:OUT VALUE="Height:$h Width:$w"/>
Draw a line from the pixels 0,0 to 100,100
View code
<eBD:IMGDRAW IMG="img" LINE="0,0,100,100" COLOR="0D9DF1" THICKNESS="100"/>
Invert image (vertical mode)
View mode
<eBD:IMGTRANSFORM IMG="img" FLIP="V"/>
Draw text on the image
View mode
<eBD:IMGDRAW IMG="img" STRING="Hello" START="50,50" COLOR="FFFFFF" FONT="MEDIUM"/>
Create a copy with a part of the origin image and the other part of the modified image
View code
<eBD:IMGCREATE TMPFILE="tmpimg" VAR="imgvar2"/>
<eBD:IMGCOPY SRC="img" FROM="0,0,240,100" DST="imgvar2" TO="0,0"/>
Save image in a table
View code
<eBD:IMGSAVE TMPFILE="file" NAME="imgMod.jpg" FORMAT="jpg" IMG="img"/>
<ebd:insert table="ficheros">
<ebd:datafield field="archivo" value="$file"/>
<ebd:datafield field="publicado" value="S"/>
</ebd:insert>