Difference between revisions of "Tabulation addImage"

From Catglobe Wiki
Jump to: navigation, search
(Created page with "=== <span style="color:#DF8621">'''Examples'''</span> === <source lang="javascript">Array image2 = Resource_searchByName("voxmeterlogo",Resource_Type_Attachment,0,NAME_SEARCH...")
 
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
{{HelpFiles}}
 +
 +
==== Tabulation_addImage ====
 +
 +
Adds an image to the report
 +
 +
'''Syntax'''
 +
 +
Tabulation_addImage(''TabulationImage'')
 +
 +
'''Arguments'''
 +
 +
*[[TabulationImage class|''TabulationImage'']]
 +
 +
 +
 
=== <span style="color:#DF8621">'''Examples'''</span> ===
 
=== <span style="color:#DF8621">'''Examples'''</span> ===
  
<source lang="javascript">Array image2 = Resource_searchByName("voxmeterlogo",Resource_Type_Attachment,0,NAME_SEARCH_TYPE_ANYWHERE,1,64);<br/>Attachment img2 = new Attachment(image2[0][1]);<br/><br/>TabulationImage t2 = new TabulationImage(img2, tps);<br/>//t.Opacity = 0.5;<br/>t2.Height = 20;<br/>Tabulation_addImage(t2);<br/>
+
<source lang="javascript">
 +
Array image2 = Resource_searchByName("voxmeterlogo",Resource_Type_Attachment,0,NAME_SEARCH_TYPE_IDENTICAL,1,64);
 +
Attachment img2 = new Attachment(image2[0][1]);
 +
 
 +
TabulationImage t2 = new TabulationImage(img2, tps);
 +
//t.Opacity = 0.5;
 +
t2.Height = 20;
 +
Tabulation_addImage(t2);
 +
 
 
</source>
 
</source>
 +
 +
[[category:Diagram/report generating CGScript functions]]
 +
 +
 +
{{note}} ''This function should be paired with function [http://wiki.catglobe.com/index.php/Tabulation_setShowResultAsPdf Tabulation_setShowResultAsPdf].''
 +
 +
'''Availability'''
 +
 +
Version 6.0

Latest revision as of 10:46, 24 June 2016


Tabulation_addImage

Adds an image to the report

Syntax

Tabulation_addImage(TabulationImage)

Arguments


Examples

Array image2 = Resource_searchByName("voxmeterlogo",Resource_Type_Attachment,0,NAME_SEARCH_TYPE_IDENTICAL,1,64);
Attachment img2 = new Attachment(image2[0][1]);

TabulationImage t2 = new TabulationImage(img2, tps);
//t.Opacity = 0.5;
t2.Height = 20;
Tabulation_addImage(t2);


Note Note: This function should be paired with function Tabulation_setShowResultAsPdf.

Availability

Version 6.0