<< GetPDFPath | GetPictureDisplay >> |
Top: Documentation Library | Up: G Commands |
GetPicture Object Query Command
GETPICTURE Object Queries
Gets coordinates and information for a picture.
getpicture [POSITION stem] [FRAME string] [CONTENTOFFSET
stem] [CONTENTSCALE stem] [ROTATION stem] [ABOUT stem] [CONSTRAIN
string] [PRINT string] [FILEINFO stem] [DPI stem] [DOCUMENT name
| WINDOW name | OBJECTID number]
[FPOSIZE
&bmstem/.TYPE
POSITION/a Gets the coordinates.
FRAME/s Gets the frame state.
CONTENTOFFSET/a Gets the frame contents offset.
CONTENTSCALE/a Gets the frame contents scale.
ROTATION/a Gets the rotation.
ABOUT/a Gets the rotation point.
CONSTRAIN/s Gets the proportional scale flag state.
PRINT/s Gets the print flag state.
FILEINFO/a Gets the file location.
DPI Gets the resolution.
DOCUMENT/s The document name. Default=current.
WINDOW/s The window name. Default=current.
OBJECTID/i The object number. Default=current.
Results:
The object ID is returned to RESULT.
POSITION stem
left/d The left coordinate.
top/d The top coordinate.
right/d The right coordinate.
bottom/d The bottom coordinate.
FRAME string/s The frame state: ON | OFF.
CONTENTOFFSET stem
x/d The horizontal offset.
y/d The vertical offset.
CONTENTSCALE stem
h/d The horizontal scale.
v/d The vertical scale.
ROTATION stem
mode/k The rotation point: POINT | CENTER.
slant/d The slant angle.
twist/d The twist angle.
ABOUT stem
x/d The point's horizontal coordinate.
y/d The point's vertical coordinate.
CONSTRAIN string/k The constrain flag: ON | OFF.
PRINT string/k The print flag: ON | OFF.
FILEINFO stem
mode/k The file status: INTERNAL | EXTERNAL.
file/s The filepath and name.
DPI stem
x/i The horizontal resolution
y/i The vertical resolution
Examples:
getpicture position coord say 'Left: '||coord.left say 'Top: '||coord.top say 'Right: '||coord.right say 'Bottom: '||coord.bottom
GetPicture Command Definition url:PGScmd/getpicture
created:2006-03-30 22:20:08 last updated:2006-03-30 22:20:08
Copyright © 1985-2024 GrasshopperLLC. All Rights Reserved.
User Contributed Comments For GetPicture | sign in to add a comment |
Dan Kilroy wrote... | 2006-05-03 20:19:46 |
Script command submitted from PageStream internal documentation. Needs to be checked and merged with the command documentation above. Gets the {...} . objectid = GetPicture ([POSITION &coord/.LEFT.TOP.RIGHT.BOTTOM] [DPI &dpi/.X.Y] [BITMAPSIZE &bmstem/.TYPE<PALETTE|GRAYSCALE|B&W|RGB|CMYK>.DEPTH.W.H.XDPI.YDPI] PGS40: [FPOSIZE &bmstem/.TYPE<DEFAULT|FINE|MEDIUM|COARSE|CUSTOM>.XDPI.YDPI] [NAME &name][DESC &desc][AUTHOR &author][COPYRIGHT ©right] [FILEINFO &filestem/.MODE<INTERNAL|EXTERNAL>.FILE.FORMAT.DATE.TIME] [FRAME &flag<ON | OFF>] [CONTENTOFFSET &offset/.X.Y] [CONTENTSCALE &scale/.H.V] [CONTENTROTATION &rotation/.SLANT.TWIST] [ROTATION &rotation/.SLANT.TWIST] [ABOUT &mode/.MODE<POINT|CENTER>.X.Y] [CONSTRAIN &flag<ON|OFF>] [PRINT &flag<ON|OFF>] [DOCUMENT document | WINDOW document-window | OBJECTID objectid])
ARexx: Applescript: | |
User Contributed Comments For GetPicture | sign in to add a comment |
<< GetPDFPath | GetPictureDisplay >> |
Top: Documentation Library | Up: G Commands |