Adobe 26001360 Scripting Guide - Page 432
Notes, Example 70.1, Table 5.130, RasterItem - Methods Continued
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 432 highlights
432 Visual Basic Reference Table 5.130 RasterItem - Methods (Continued) Method Returns Transform( transformationMatrix As Matrix, [changePositions As Boolean], [changeFillPatterns As Boolean], [changeFillGradients As Boolean], [changeStrokePattern As Boolean], [changeLineWidths As Double], [transformAbout As AiTransformation]) Translate( [deltaX As Double], [deltaY As Double], [transformObjects As Boolean], [transformFillPatterns As Boolean], [transformFillGradients As Boolean], [transformStrokePatterns As Boolean]) ZOrder( zOrderCmd As AiZOrderMethod) Nothing Nothing Nothing What it does Transforms the art object by applying a transformation matrix Repositions the art object relative to the current position, where deltaX is the horizontal offset and deltaY is the vertical offset Arranges the art object's position in the stacking order of the group or layer (Parent) of this object Notes You can create RasterItems a script if you use an external file. You can also create new RasterItems by copying and pasting an existing RasterItem. Note that it is not necessary to set the type of the ContentVariable before binding. Example 70.1 This example illustrates how to create a new RasterItem in the frontmost document. The script assumes that you have a file called "c:\temp\sample.jpg". Dim appRef As New Illustrator.Application Dim newRasterArt As Illustrator.RasterItem Set newRasterArt = appRef.ActiveDocument.RasterItems.Add newRasterArt.File = "C:\temp\sample.jpg" 12 Aug 03