@@ -7,8 +7,9 @@ Syntax: import snapshot [from rect[angle] <rectDescription>] [of {<objectRef> |
77Syntax: import snapshot from {<objectRef> [{with | without} effects] | <stackRef>} [at size <sizeDescription>]
88
99Summary:
10- Creates an <image> of a portion of the screen, portion of a stack or a
11- specific object and sets <it> to the long id of the created <image>.
10+ Creates an <image> of a portion of the screen, a portion of a stack
11+ window, or a specific object and sets <it> to the long id of the
12+ created <image>.
1213
1314Introduced: 1.0
1415
@@ -62,7 +63,6 @@ Any valid card or control <object reference>.
6263sizeDescription:
6364The width and height of the snapshot in pixels, in the form *height,width*.
6465
65-
6666Description:
6767Use the <import snapshot> <command> to place a screenshot in the
6868<current stack>.
@@ -110,6 +110,65 @@ as the Tools palette).
110110The format of the resulting <image> depends on the current setting of the
111111<paintCompression> <property>.
112112
113+ <<<<<<< HEAD
114+ To import a snapshot for a portion of a stack you use the form:
115+
116+ import snapshot from rect[angle] rectDescription of stack winID
117+
118+ Where *winID* is the <windowID> property of the given stack.
119+
120+ To import a snapshot of a specific (non-stack) object, use the form:
121+
122+ import snapshot from objectRef
123+
124+ Where <objectRef> is any control or card <object reference>, or any
125+ <expression> evaluating to a control or card <object reference>.
126+
127+ To import a snapshot of an object, including its <blendLevel>, <ink>, or
128+ graphic effects, use the `with effects` form:
129+
130+ import snapshot from objectRef with effects
131+
132+ =======
133+ iOS supports both the object and screen snapshot variants of the
134+ <import snapshot> command. In the screen snapshot case, coordinates
135+ are given relative to the top-left of the screen, including the
136+ area where status bar is, but not including the status bar itself.
137+
138+ If you do not specify the rect[angle] <token> or an <objectRef>, LiveCode
139+ displays a crosshairs <cursor>. Click at one corner of the rectangular
140+ area to be imported and drag to the opposite corner to <select> the area.
141+
142+ If taking a snapshot using the rect[angle] <token> and <rectangle(property)>
143+ of an object, the coordinates in the <rectDescription> are absolute (screen)
144+ coordinates. The portions of all windows and other objects on the screen
145+ that intersect the <rectDescription> will be included in the snapshot.
146+
147+ If taking a snapshot using the rectangle <token>, <rectDescription>, and
148+ a <stackRef>, the coordinates in <rectDescription> are relative to the
149+ top left corner of the stack you specify. The portions of all
150+ objects that intersect the <rectDescription> will be included in the
151+ snapshot. In addition, if the window is partly overlapped by another
152+ window, whatever is visible on the screen within that <rectDescription>
153+ is placed in the snapshot. In other words, you cannot take a snapshot
154+ of a part of a window that is hidden by another overlapping window.
155+
156+ If taking a snapshot using an <objectRef>, the object is rendered into
157+ an <image> as if no other objects existed around it. The snapshot is taken
158+ without applying the object's <blendlevel>, <ink>, or graphic effects.
159+ You can take a snapshot of an object regardless of its visibility or open
160+ status--in particular, snapshots can be taken of objects that are not on
161+ the current card or in stacks that are not open.
162+
163+ Use the `at size sizeDescription` extension if you wish the engine
164+ to resize the snapshot taken to the dimensions specified.
165+
166+ While you take the snapshot, LiveCode hides its own IDE windows (such
167+ as the Tools palette).
168+
169+ The format of the resulting <image> depends on the current setting of the
170+ <paintCompression> <property>.
171+
113172To import a snapshot for a portion of a stack you use the form:
114173
115174 import snapshot from rect[angle] rectDescription of stack winID
@@ -128,6 +187,7 @@ graphic effects, use the `with effects` form:
128187
129188 import snapshot from objectRef with effects
130189
190+ >>>>>>> upstream/develop-8.2
131191Where <objectRef> is any control <object reference>, or any
132192<expression> evaluating to a control <object reference>.
133193
@@ -152,7 +212,7 @@ import (command), current stack (glossary), current card (glossary),
152212command (glossary), object reference (glossary), property (glossary),
153213image (glossary), cursor (property), blendlevel (property), ink (property),
154214paintCompression (property), rectangle (property), select (glossary),
155- token (glossary), windowID (property), it (property )
215+ token (glossary), windowID (property), it (keyword )
156216
157217Tags: multimedia
158218
0 commit comments