Macro Language Reference > Macros > Graphic > ttagr2o
  
ttagr2o
Description
Enables the creation of a object graphic from a raster.
 
Example 157. Examples of creating an object graphic from a raster graphic
This first example will create object graphic og1, which contains raster graphic rg1, with runaround, scaled to a width of 100mm, preserving the aspect ratio in terms of height:
ttagr2o "rg1", "og1", 1, 2, 100mm, 3
The second example will create object graphic og1, which contains raster graphic rg1, with no runaround, scaled to a height of 50%, preserving the aspect ratio in terms of width:
ttagr2o "rg1", "og1", 0, 3, 2, 50
The third example will create object graphic og1, which contains raster graphic rg1 , with no runaround and no scaling.
ttagr2o "rg1", "og1"
Syntax
ttagr2o raster:s object:s ( avoid:n ( ( scale:n x_val:n? )? ( scale:n y_val:n? )? )? )?
ttagr2o
[no parameter]
Invoke the Raster to Object Graphic dialog box.
raster
The name of the source raster to be used as the basis for the object graphic
object
The name of the new object graphic to be created
avoid
0
Do not apply a runaround on the graphic.
1
Apply a runaround on the graphic.
scale_x
The sizing or scaling to be applied to the width of the raster in the new object:
0
No scaling
1
Absolute size
2
Percentage size
3
Preserve aspect ratio
x_val
The value to be applied for width sizing / scaling, depending on the option selected for the scale_x parameter:
If scale_x is 0, omit this parameter (not required).
If scale_x is 1, enter the actual width of the raster.
if scale_x is 2, enter the percentage of the current scale width of raster.
if scale_x is 3, omit this parameter (not required)
scale_y
The sizing or scaling to be applied to the height of the raster in the new object:
0
No scaling
1
Absolute size
2
Percentage size
3
Preserve aspect ratio
y_val
The value to be applied for height sizing / scaling, depending on the option selected for the scale_y parameter:
If scale_y is 0, omit this parameter (not required).
If scale_y is 1, enter the actual height of the raster.
if scale_y is 2, enter the percentage of the current scale height of raster.
if scale_y is 3, omit this parameter (not required)