author | Claus Gittinger <cg@exept.de> |
Tue, 27 Mar 2018 20:12:29 +0200 | |
changeset 3552 | 2a1e3a914c9a |
parent 3550 | b31b44c04a3e |
child 3553 | 31631af8baf9 |
permissions | -rw-r--r-- |
400 | 1 |
" |
767 | 2 |
COPYRIGHT (c) 1997-1998 by eXept Software AG |
400 | 3 |
All Rights Reserved |
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
405 | 7 |
inclusion of the above copyright notice. This software may not |
400 | 8 |
be provided or otherwise made available to, or used by, any |
405 | 9 |
other person. No title to or ownership of the software is |
400 | 10 |
hereby transferred. |
11 |
" |
|
1376
ce3cf26e201e
change & updates fixed (monochrome bitmaps)
Claus Gittinger <cg@exept.de>
parents:
1353
diff
changeset
|
12 |
"{ Package: 'stx:libtool2' }" |
ce3cf26e201e
change & updates fixed (monochrome bitmaps)
Claus Gittinger <cg@exept.de>
parents:
1353
diff
changeset
|
13 |
|
3180 | 14 |
"{ NameSpace: Smalltalk }" |
15 |
||
1975 | 16 |
ResourceSpecEditor subclass:#ImageEditor |
975 | 17 |
instanceVariableNames:'imageEditView colorMapMode editMode mouseKeyColorMode |
1960 | 18 |
selectedColorIndex postOpenAction imageSeqNr drawingColormap |
2767 | 19 |
lastShiftUsedWrap lastGrabbedScreenArea |
3379 | 20 |
allowedToChangeImageDimensionAndDepth savedImage savedFile' |
3416 | 21 |
classVariableNames:'DefaultRelativeSizes LastColormapMode LastDirectory |
3497 | 22 |
LastSizeString LastURL MaskClipboard LastDepth |
3550 | 23 |
LastNumThresholdGrayColors LastMagnifyTo LastMagnifyBy |
24 |
LastMagnifySmoothing' |
|
929 | 25 |
poolDictionaries:'' |
26 |
category:'Interface-UIPainter' |
|
400 | 27 |
! |
28 |
||
29 |
!ImageEditor class methodsFor:'documentation'! |
|
30 |
||
31 |
copyright |
|
32 |
" |
|
767 | 33 |
COPYRIGHT (c) 1997-1998 by eXept Software AG |
400 | 34 |
All Rights Reserved |
35 |
||
36 |
This software is furnished under a license and may be used |
|
37 |
only in accordance with the terms of that license and with the |
|
405 | 38 |
inclusion of the above copyright notice. This software may not |
400 | 39 |
be provided or otherwise made available to, or used by, any |
405 | 40 |
other person. No title to or ownership of the software is |
400 | 41 |
hereby transferred. |
42 |
" |
|
43 |
! |
|
44 |
||
45 |
documentation |
|
46 |
" |
|
737 | 47 |
Image Editor allows you to create, design, modify or just inspect images. |
3375 | 48 |
It is also used subclasses as a tool to post-process captured screen images and |
49 |
bitmaps in expecco. |
|
400 | 50 |
|
3530 | 51 |
The actual drawing functionality is found in ImageEditView; |
52 |
the code here (an appModel) provides nice menus, previews, colormap manipulation etc. |
|
53 |
||
400 | 54 |
[start with:] |
55 |
ImageEditor open |
|
941 | 56 |
ImageEditor openOnClass:Icon andSelector:#startIcon |
3466 | 57 |
(Image fromFile:'../../goodies/bitmaps/gifImages/garfield.gif') edit |
58 |
(Image fromScreen:(0@0 corner:100@100)) edit |
|
400 | 59 |
|
60 |
[see also:] |
|
61 |
ImageEditView Image |
|
62 |
||
63 |
[author:] |
|
544 | 64 |
Thomas Zwick, eXept Software AG |
1806 | 65 |
Claus Gittinger, eXept Software AG |
400 | 66 |
" |
67 |
! ! |
|
68 |
||
69 |
!ImageEditor class methodsFor:'instance creation'! |
|
70 |
||
3357 | 71 |
openLoadingImageWith:aBlock modal:modalBoolean |
3376 | 72 |
"opens an Image Editor on anImage. |
3427 | 73 |
Returns the editor (to access its attributes)" |
1975 | 74 |
|
75 |
|editor| |
|
76 |
||
77 |
editor := self new. |
|
78 |
editor allButOpen. |
|
79 |
aBlock value:editor. |
|
3357 | 80 |
modalBoolean ifTrue:[ |
81 |
editor openWindowModal. |
|
82 |
] ifFalse:[ |
|
83 |
editor openWindow. |
|
84 |
]. |
|
2764 | 85 |
^ editor |
3427 | 86 |
|
87 |
"Modified (comment): / 07-03-2017 / 16:36:16 / cg" |
|
1975 | 88 |
! |
89 |
||
400 | 90 |
openModalOnClass: aClass andSelector: aSelector |
1975 | 91 |
"opens a modal Image Editor on aClass and aSelector. |
92 |
Returns the real name of the edited resource method (in case, user changed it)." |
|
93 |
||
94 |
|imageEditor imageEditView className resourceClass resourceSelector| |
|
767 | 95 |
|
400 | 96 |
imageEditor := self new. |
767 | 97 |
|
900 | 98 |
aClass isClass ifTrue: [className := aClass name]. |
99 |
aClass isString ifTrue: [className := aClass]. |
|
903 | 100 |
aClass isNil ifTrue: [className := '']. |
400 | 101 |
|
2764 | 102 |
imageEditor postOpenAction: [ |
103 |
imageEditView := imageEditor imageEditView. |
|
104 |
imageEditor loadFromOrPrepareForClass: aClass andSelector: aSelector |
|
105 |
]. |
|
400 | 106 |
imageEditor openModal. |
107 |
||
1975 | 108 |
resourceClass := imageEditView resourceClass. |
109 |
resourceSelector := imageEditView resourceSelector. |
|
110 |
||
111 |
(resourceClass isNil or:[resourceSelector isNil]) ifTrue:[^ nil]. |
|
112 |
^ Array with:resourceClass with:resourceSelector |
|
1966 | 113 |
|
114 |
" |
|
115 |
self openModalOnClass: self andSelector: #leftMouseKeyIcon |
|
116 |
" |
|
400 | 117 |
! |
118 |
||
3357 | 119 |
openModalOnFile:aFileName |
3427 | 120 |
"opens an Image Editor on aFileName. |
121 |
Returns the editor (to access its attributes)" |
|
122 |
||
123 |
^ self openOnFile:aFileName modal:true |
|
3357 | 124 |
|
125 |
" |
|
126 |
self openModalOnFile: '../../goodies/bitmaps/gifImages/back.gif' |
|
127 |
" |
|
3411 | 128 |
|
3427 | 129 |
"Modified: / 07-03-2017 / 16:36:32 / cg" |
3357 | 130 |
! |
131 |
||
2764 | 132 |
openModalOnImage:anImage |
133 |
"opens a modal Image Editor on an image. |
|
134 |
Returns the modified image or nil if unsaved/unchanged" |
|
135 |
||
136 |
|imageEditor imageEditView newImage| |
|
137 |
||
138 |
imageEditor := self new. |
|
2767 | 139 |
imageEditor allowedToChangeImageDimensionAndDepth:false. |
2764 | 140 |
imageEditor postOpenAction: [ |
141 |
imageEditView := imageEditor imageEditView. |
|
142 |
imageEditor loadFromImage: anImage |
|
143 |
]. |
|
144 |
imageEditor openModal. |
|
145 |
||
2766 | 146 |
newImage := imageEditor savedImage. |
2764 | 147 |
^ newImage |
148 |
! |
|
149 |
||
1966 | 150 |
openOnClass:aClass andSelector:aSelector |
3427 | 151 |
"opens an Image Editor on aClass and aSelector. |
152 |
Returns the editor (to access its attributes)" |
|
153 |
||
154 |
^ self openOnClass:aClass andSelector:aSelector modal:false |
|
1057 | 155 |
|
1966 | 156 |
" |
157 |
self openOnClass:self andSelector:#leftMouseKeyIcon |
|
158 |
self openOnClass:self andSelector:nil |
|
159 |
" |
|
160 |
||
3427 | 161 |
"Modified: / 07-03-2017 / 16:36:58 / cg" |
162 |
! |
|
163 |
||
164 |
openOnClass:aClass andSelector:aSelector modal:modal |
|
165 |
"opens an Image Editor on aClass and aSelector. |
|
166 |
Returns the editor (to access its attributes)" |
|
167 |
||
168 |
^ self |
|
169 |
openLoadingImageWith:[:editor | |
|
170 |
editor loadFromClass:(aClass theNonMetaclass) andSelector:aSelector |
|
171 |
] |
|
172 |
modal:modal. |
|
173 |
||
174 |
" |
|
175 |
self openOnClass:self andSelector:#leftMouseKeyIcon modal:true |
|
176 |
self openOnClass:self andSelector:nil |
|
177 |
" |
|
178 |
||
179 |
"Created: / 07-03-2017 / 16:34:36 / cg" |
|
400 | 180 |
! |
181 |
||
1966 | 182 |
openOnFile:aFileName |
3427 | 183 |
"opens an Image Editor on aFileName. |
184 |
Returns the editor (to access its attributes)" |
|
185 |
||
186 |
^ self openOnFile:aFileName modal:false |
|
1057 | 187 |
|
1966 | 188 |
" |
1975 | 189 |
self openOnFile: '../../goodies/bitmaps/gifImages/back.gif' |
1966 | 190 |
" |
191 |
||
3427 | 192 |
"Modified: / 07-03-2017 / 16:37:33 / cg" |
193 |
! |
|
194 |
||
195 |
openOnFile:aFileName modal:modal |
|
196 |
"opens an Image Editor on aFileName. |
|
197 |
Returns the editor (to access its attributes)" |
|
198 |
||
199 |
^ self |
|
200 |
openLoadingImageWith:[:editor | |
|
201 |
editor loadFromFile:aFileName. |
|
202 |
] |
|
203 |
modal:modal. |
|
204 |
||
205 |
" |
|
206 |
self openOnFile: '../../goodies/bitmaps/gifImages/back.gif' modal:false |
|
207 |
self openOnFile: '../../goodies/bitmaps/gifImages/back.gif' modal:true |
|
208 |
" |
|
209 |
||
210 |
"Created: / 07-03-2017 / 16:33:12 / cg" |
|
400 | 211 |
! |
212 |
||
1966 | 213 |
openOnImage:anImage |
3427 | 214 |
"opens an Image Editor on anImage. |
215 |
Returns the editor (to access its attributes)" |
|
216 |
||
217 |
^ self |
|
3375 | 218 |
openLoadingImageWith:[:editor | editor loadFromImage: anImage ] |
219 |
modal:false |
|
1053
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
220 |
|
1966 | 221 |
" |
222 |
self openOnImage: Icon startIcon |
|
223 |
" |
|
224 |
||
3427 | 225 |
"Modified: / 07-03-2017 / 16:37:57 / cg" |
400 | 226 |
! ! |
227 |
||
228 |
!ImageEditor class methodsFor:'accessing'! |
|
229 |
||
230 |
listOfColorMaps |
|
767 | 231 |
"returns the list of default color maps for a new image" |
400 | 232 |
|
233 |
|colorMap| |
|
898 | 234 |
|
400 | 235 |
(colorMap := OrderedCollection new) |
236 |
add: Color black; |
|
237 |
add: Color white; |
|
238 |
add: Color red; |
|
239 |
add: Color green; |
|
240 |
add: Color blue; |
|
241 |
add: Color cyan; |
|
242 |
add: Color yellow; |
|
243 |
add: Color magenta; |
|
898 | 244 |
add: (Color redByte: 127 greenByte: 0 blueByte: 0); |
245 |
add: (Color redByte: 0 greenByte: 127 blueByte: 0); |
|
246 |
add: (Color redByte: 0 greenByte: 0 blueByte: 127); |
|
247 |
add: (Color redByte: 0 greenByte: 127 blueByte: 127); |
|
248 |
add: (Color redByte: 127 greenByte: 127 blueByte: 0); |
|
249 |
add: (Color redByte: 127 greenByte: 0 blueByte: 127); |
|
250 |
add: (Color redByte: 127 greenByte: 127 blueByte: 127); |
|
251 |
add: (Color redByte: 170 greenByte: 170 blueByte: 170). |
|
252 |
||
3346 | 253 |
0 to: 5 do: [:r| |
254 |
0 to: 5 do: [:g| |
|
255 |
0 to: 5 do: [:b| |
|
898 | 256 |
colorMap add: (Color redByte: (r*255//5) ceiling greenByte: (g*255//5) ceiling blueByte: (b*255//5) ceiling) |
400 | 257 |
] |
258 |
] |
|
259 |
]. |
|
260 |
||
3346 | 261 |
1 to: 25 do: [:g| |
898 | 262 |
colorMap add: (Color redByte: (g*255//26) ceiling greenByte: (g*255//26) ceiling blueByte: (g*255//26) ceiling) |
400 | 263 |
]. |
264 |
||
1847
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
265 |
^ Dictionary new |
2571 | 266 |
at: #depth32 put:(FixedPalette redShift:16 redMask:16rFF greenShift:8 greenMask:16rFF blueShift:0 blueMask:16rFF); |
1847
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
267 |
at: #depth24 put:(FixedPalette redShift:16 redMask:16rFF greenShift:8 greenMask:16rFF blueShift:0 blueMask:16rFF); |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
268 |
at: #masked24 put:(FixedPalette redShift:16 redMask:16rFF greenShift:8 greenMask:16rFF blueShift:0 blueMask:16rFF); |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
269 |
at: #depth16 put:(FixedPalette redShift:11 redMask:16r1F greenShift:5 greenMask:16r3F blueShift:0 blueMask:16r1F); |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
270 |
at: #masked16 put:(FixedPalette redShift:11 redMask:16r1F greenShift:5 greenMask:16r3F blueShift:0 blueMask:16r1F); |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
271 |
at: #depth8 put: colorMap; |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
272 |
at: #masked8 put: colorMap; |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
273 |
at: #depth4 put: (colorMap copyFrom: 1 to: 16); |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
274 |
at: #masked4 put: (colorMap copyFrom: 1 to: 16); |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
275 |
at: #depth2 put: (colorMap copyFrom: 1 to: 4); |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
276 |
at: #masked2 put: (colorMap copyFrom: 1 to: 4); |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
277 |
at: #depth1 put: (colorMap copyFrom: 1 to: 2); |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
278 |
at: #masked1 put: (colorMap copyFrom: 1 to: 2); |
400 | 279 |
yourself |
280 |
! |
|
281 |
||
282 |
listOfDefaultSizes |
|
767 | 283 |
"returns the list of default sizes for a new image" |
400 | 284 |
|
1960 | 285 |
^ #('8x8' '16x16' '22x22' '32x32' '48x48' '64x64') |
932
7111238cda23
fixed dimension of new-image dialog.
Claus Gittinger <cg@exept.de>
parents:
930
diff
changeset
|
286 |
|
7111238cda23
fixed dimension of new-image dialog.
Claus Gittinger <cg@exept.de>
parents:
930
diff
changeset
|
287 |
"Modified: / 31.7.1998 / 01:57:34 / cg" |
1847
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
288 |
! |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
289 |
|
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
290 |
namesOfColorMaps |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
291 |
^ Dictionary new |
2571 | 292 |
at: #depth32 put: '32-plane (rgba)'; |
1847
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
293 |
at: #depth24 put: '24-plane'; |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
294 |
at: #masked24 put: '24-plane + mask'; |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
295 |
at: #depth16 put: '16-plane'; |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
296 |
at: #masked16 put: '16-plane + mask'; |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
297 |
at: #depth8 put: ' 8-plane'; |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
298 |
at: #masked8 put: ' 8-plane + mask'; |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
299 |
at: #depth4 put: ' 4-plane'; |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
300 |
at: #masked4 put: ' 4-plane + mask'; |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
301 |
at: #depth2 put: ' 2-plane'; |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
302 |
at: #masked2 put: ' 2-plane + mask'; |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
303 |
at: #depth1 put: ' 1-plane'; |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
304 |
at: #masked1 put: ' 1-plane + mask' ; |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
305 |
yourself |
400 | 306 |
! ! |
307 |
||
460 | 308 |
!ImageEditor class methodsFor:'help specs'! |
309 |
||
3405 | 310 |
helpPairs |
2871 | 311 |
"This resource specification was automatically generated |
312 |
by the UIHelpTool of ST/X." |
|
313 |
||
314 |
"Do not manually edit this!! If it is corrupted, |
|
315 |
the UIHelpTool may not be able to read the specification." |
|
316 |
||
317 |
" |
|
3408 | 318 |
UIHelpTool openOnClass:ImageEditor |
2871 | 319 |
" |
320 |
||
321 |
<resource: #help> |
|
322 |
||
323 |
^ #( |
|
324 |
||
3421 | 325 |
#drawingColor1 |
326 |
'The color associated to the left mouse button.\Also the color used in fill operations' |
|
327 |
||
328 |
#drawingColor2 |
|
329 |
'The color associated to the right mouse button.\Also the second color used in gradient fill operations' |
|
330 |
||
3487 | 331 |
#drawingAlpha |
3488 | 332 |
'The alpha value (in percent) to be used in edit operations.\If the "mask"-color is selected, only the alpha value will be changed.\Otherwise, the selected color plus this alpha value will be used for drawing' |
3487 | 333 |
|
3417 | 334 |
#autoCropAll |
335 |
'Find and remove all borders' |
|
336 |
||
337 |
#autoCropBottom |
|
338 |
'Find and remove bottom border' |
|
339 |
||
340 |
#autoCropLeft |
|
341 |
'Find and remove left border' |
|
342 |
||
343 |
#autoCropRight |
|
344 |
'Find and remove right border' |
|
345 |
||
346 |
#autoCropTop |
|
347 |
'Find and remove top border' |
|
348 |
||
460 | 349 |
#colorMap |
2765 | 350 |
'ColorMap functions' |
929 | 351 |
|
352 |
#colorMap1 |
|
2765 | 353 |
'Convert to depth-1 image' |
929 | 354 |
|
986 | 355 |
#colorMap1M |
2765 | 356 |
'Convert to depth-1 image plus mask' |
986 | 357 |
|
929 | 358 |
#colorMap2 |
2765 | 359 |
'Convert to depth-2 image' |
360 |
||
361 |
#colorMap24 |
|
362 |
'Convert to depth-24 image (rgb)' |
|
929 | 363 |
|
986 | 364 |
#colorMap2M |
2765 | 365 |
'Convert to depth-2 image plus mask' |
366 |
||
367 |
#colorMap32 |
|
368 |
'Convert to depth-32 image (rgba)' |
|
986 | 369 |
|
929 | 370 |
#colorMap4 |
2765 | 371 |
'Convert to depth-4 image' |
929 | 372 |
|
986 | 373 |
#colorMap4M |
2765 | 374 |
'Convert to depth-4 image plus mask' |
986 | 375 |
|
929 | 376 |
#colorMap8 |
2765 | 377 |
'Convert to depth-8 image' |
929 | 378 |
|
379 |
#colorMap8M |
|
2765 | 380 |
'Convert to depth-8 image plus mask' |
2571 | 381 |
|
986 | 382 |
#colorMapTable |
2765 | 383 |
'Shows a list of used colors of the image' |
986 | 384 |
|
929 | 385 |
#compressColormap |
2765 | 386 |
'Remove unneeded entries from the colorMap' |
460 | 387 |
|
1045 | 388 |
#cropAll |
3417 | 389 |
'Crop (cut off) all four sides by the amounts entered into the above fields.' |
986 | 390 |
|
1045 | 391 |
#cropBottom |
3417 | 392 |
'Cut off the specified number of pixels at the bottom' |
393 |
||
394 |
#cropBySelectingArea |
|
395 |
'Select new area in the right detail view.' |
|
986 | 396 |
|
1045 | 397 |
#cropLeft |
3417 | 398 |
'Cut off the specified number of pixels at the left' |
986 | 399 |
|
1045 | 400 |
#cropManual |
986 | 401 |
'Specify border(s) to remove.' |
402 |
||
1045 | 403 |
#cropRight |
3417 | 404 |
'Cut off the specified number of pixels at the right' |
986 | 405 |
|
1045 | 406 |
#cropTop |
3417 | 407 |
'Cut off the specified number of pixels at the top' |
408 |
||
409 |
#cropubImage |
|
410 |
'Select a subarea as the image''s new dimension' |
|
487 | 411 |
|
460 | 412 |
#drawModeBox |
2765 | 413 |
'Rectangle Drawing Mode' |
460 | 414 |
|
2375 | 415 |
#drawModeCircle |
2765 | 416 |
'Circle Drawing Mode' |
2375 | 417 |
|
460 | 418 |
#drawModeCopy |
2765 | 419 |
'Area Copy Mode' |
460 | 420 |
|
3423 | 421 |
#drawModeCropSubImage |
422 |
'Select and extract a subimage' |
|
423 |
||
460 | 424 |
#drawModeFill |
2765 | 425 |
'Flood Fill Mode' |
460 | 426 |
|
427 |
#drawModeFilledBox |
|
2765 | 428 |
'Filled Rectangle Drawing Mode' |
460 | 429 |
|
3408 | 430 |
#drawModeFilledCircle |
431 |
'Filled Circle Drawing Mode' |
|
432 |
||
433 |
#drawModeMaskOutsideCircle |
|
434 |
'Mask everything outside a Circle' |
|
435 |
||
436 |
#drawModeMaskOutsideRectangle |
|
437 |
'Mask everything outside a Rectangle' |
|
438 |
||
460 | 439 |
#drawModePaste |
3512 | 440 |
'Paste-Over Mode (only paste pixels; keep mask as is)' |
914 | 441 |
|
442 |
#drawModePasteUnder |
|
3512 | 443 |
'Paste-Under Mode (only paste previously masked pixels)' |
1637 | 444 |
|
445 |
#drawModePasteWithMask |
|
3512 | 446 |
'Paste-with-Mask Mode (both pixel and mask are pasted)' |
460 | 447 |
|
448 |
#drawModePoint |
|
2765 | 449 |
'Point Drawing Mode' |
2375 | 450 |
|
1639 | 451 |
#drawModeSpecial |
2871 | 452 |
'Special operations (select rectangle, then choose operation)' |
1639 | 453 |
|
2765 | 454 |
#drawModeSpray |
455 |
'Spray Drawing Mode' |
|
456 |
||
3408 | 457 |
#edit3DProjection |
458 |
'Generate a 3D projection' |
|
459 |
||
460 | 460 |
#editFlipHorizontal |
2765 | 461 |
'Flip the image horizontally' |
460 | 462 |
|
463 |
#editFlipVertical |
|
2765 | 464 |
'Flip the image vertically' |
460 | 465 |
|
466 |
#editMagnifyImage |
|
2765 | 467 |
'Magnify the image' |
460 | 468 |
|
469 |
#editNegate |
|
2765 | 470 |
'Invert the images colors' |
460 | 471 |
|
472 |
#editResize |
|
2765 | 473 |
'Resize the image (preserving the old image)' |
460 | 474 |
|
475 |
#editRotate |
|
2765 | 476 |
'Rotate the image' |
460 | 477 |
|
3408 | 478 |
#fileEditMask |
479 |
'Load Mask from a File' |
|
480 |
||
2701
5abe05ebb370
added: grabWindowImage (menu)
Claus Gittinger <cg@exept.de>
parents:
2663
diff
changeset
|
481 |
#fileGrabImageFromScreen |
2765 | 482 |
'Pick an image from the screen (specify area)' |
2701
5abe05ebb370
added: grabWindowImage (menu)
Claus Gittinger <cg@exept.de>
parents:
2663
diff
changeset
|
483 |
|
5abe05ebb370
added: grabWindowImage (menu)
Claus Gittinger <cg@exept.de>
parents:
2663
diff
changeset
|
484 |
#fileGrabImageFromWindow |
2765 | 485 |
'Pick an image from a window on the screen (click on window)' |
929 | 486 |
|
460 | 487 |
#fileLoadFromClass |
2765 | 488 |
'Select and load an image from a resource method' |
460 | 489 |
|
490 |
#fileLoadFromFile |
|
2765 | 491 |
'Select and load an image from a file' |
460 | 492 |
|
2796 | 493 |
#fileLoadFromURL |
494 |
'Load an image from the net, given its URL' |
|
495 |
||
460 | 496 |
#fileNewImage |
914 | 497 |
'Create a new image' |
460 | 498 |
|
3200 | 499 |
#fileNewImageFromClipboard |
500 |
'Create a new image and initialize it from the clipboard' |
|
501 |
||
502 |
#fileNewMaskFromClipboard |
|
503 |
'Paste the image in the clipboard as a mask. Must be a depth-1 image' |
|
504 |
||
460 | 505 |
#filePrint |
3417 | 506 |
'Print the image on a postscript printer' |
3408 | 507 |
|
508 |
#filePrint |
|
3417 | 509 |
'Print' |
2765 | 510 |
|
511 |
#fileSave |
|
512 |
'Save the image' |
|
460 | 513 |
|
514 |
#fileSaveAs |
|
2765 | 515 |
'Save the image to a file' |
516 |
||
517 |
#fileSaveButtonImageAs |
|
518 |
'Save an image of a button with the image to a file (for html use)' |
|
460 | 519 |
|
520 |
#fileSaveMaskAs |
|
2765 | 521 |
'Save the mask of the image to a file' |
1613 | 522 |
|
460 | 523 |
#fileSaveMethod |
2765 | 524 |
'Save the image as resource method in the current class and selector' |
460 | 525 |
|
526 |
#fileSaveMethodAs |
|
2765 | 527 |
'Save the image as resource method in a class' |
460 | 528 |
|
3408 | 529 |
#floodFillMaxError |
3433 | 530 |
'Specify the max. allowed deviation from the clicked pixel in a flood-fill operation.\Pixels where the hue/light values differ less than that fraction\will be included in the fill.\The range must be between 0 and 1. With 0, only areas with exactly the same pixel will be filled.\With 1, every other pixel is included.\\When filling gradiented areas, start with small values, such as 0.05, and increase slowly (undo and try with higher value).\This is especially useful when masking background areas from screenshots.' |
3408 | 531 |
|
532 |
#magnificationNumber |
|
533 |
'Shows the current magnification' |
|
534 |
||
535 |
#magnifyImageDown |
|
536 |
'Decrease magnification' |
|
537 |
||
538 |
#magnifyImageUp |
|
539 |
'Increase magnification' |
|
540 |
||
541 |
#mouseKeyColorMode |
|
542 |
'Toggle between left and right mouse button color' |
|
543 |
||
544 |
#nextImageInSequence |
|
545 |
'Go to the next image in the animated gif image sequence.' |
|
546 |
||
547 |
#previewView |
|
548 |
'Shows a preview of the image' |
|
549 |
||
550 |
#previousImageInSequence |
|
551 |
'Go to the previous image in the animated gif image sequence.' |
|
552 |
||
553 |
#settingsGridMagnification |
|
554 |
'Change the grid magnification of the edit view' |
|
555 |
||
556 |
#xdrawModeBox |
|
557 |
'Rectangle' |
|
558 |
||
559 |
#xdrawModeCopy |
|
560 |
'Copy' |
|
561 |
||
562 |
#xdrawModeFill |
|
563 |
'Flood-fill' |
|
564 |
||
565 |
#xdrawModeFilledBox |
|
566 |
'Filled rectangle' |
|
567 |
||
568 |
#xdrawModePaste |
|
569 |
'Paste' |
|
570 |
||
571 |
#xdrawModePasteUnder |
|
572 |
'Paste under' |
|
573 |
||
574 |
#xdrawModePasteWithMask |
|
575 |
'Paste with Mask' |
|
576 |
||
577 |
#xdrawModePoint |
|
578 |
'Point' |
|
579 |
||
580 |
#xfileGrabImage |
|
581 |
'Pick from screen' |
|
582 |
||
583 |
#xfileLoadFromClass |
|
584 |
'Load from method...' |
|
585 |
||
586 |
#xfileLoadFromFile |
|
587 |
'Load from file...' |
|
588 |
||
589 |
#xfileNewImage |
|
590 |
'New image' |
|
591 |
||
592 |
#xfileSaveAs |
|
593 |
'Save to file...' |
|
594 |
||
595 |
#xfileSaveMaskAs |
|
596 |
'Save mask to file...' |
|
597 |
||
598 |
#xfileSaveMethod |
|
599 |
'Save as method' |
|
600 |
||
601 |
#xfileSaveMethodAs |
|
602 |
'Save as Method...' |
|
3405 | 603 |
|
460 | 604 |
) |
2871 | 605 |
|
3512 | 606 |
"Modified: / 07-12-2017 / 15:32:58 / cg" |
3405 | 607 |
! |
608 |
||
609 |
helpSpec |
|
610 |
<resource: #programHelp> |
|
611 |
||
612 |
^super helpSpec addPairsFrom:(self helpPairs) |
|
613 |
||
3513 | 614 |
"Modified: / 16-02-2017 / 12:30:55 / cg" |
460 | 615 |
! ! |
616 |
||
737 | 617 |
!ImageEditor class methodsFor:'image specs'! |
618 |
||
3419 | 619 |
brighterIcon |
620 |
"This resource specification was automatically generated |
|
621 |
by the ImageEditor of ST/X." |
|
622 |
||
623 |
"Do not manually edit this!! If it is corrupted, |
|
624 |
the ImageEditor may not be able to read the specification." |
|
625 |
||
626 |
" |
|
627 |
self brighterIcon inspect |
|
628 |
ImageEditor openOnClass:self andSelector:#brighterIcon |
|
629 |
Icon flushCachedIcons |
|
630 |
" |
|
631 |
||
632 |
<resource: #image> |
|
633 |
||
634 |
^Icon |
|
635 |
constantNamed:'ImageEditor class brighterIcon' |
|
636 |
ifAbsentPut:[(Depth8Image width:14 height:14) bits:(ByteArray fromPackedString:' |
|
637 |
@PDA@PDA@PDA@PDA@PG%9^W%9^W%;>?/;>?/;>W%9^W%9^W/;>?/;>?/9^W%9^W%A [/;>?/;>?%9^W%9^TFA.?/;>?/;>W%9^W%9PXF;>?/;>?/9^W%A XF |
|
638 |
A XFA [/;>?%9^TFA XFA XFA.?/;>W%9^W%9PXF;>?/;>?/9^W%9^W%A [/;>?/;>?%9^W%9^TFA.?/;>?/;>W%9^W%9^W/;>?/;>?/9^W%9^W%9^?/;>?/ |
|
639 |
;><A@PDA@PDA@PDA@PDA@P@a') |
|
640 |
colorMapFromArray:#[88 88 88 0 0 0 255 0 0 0 255 0 0 0 255 0 255 255 255 255 127 255 0 255 127 0 0 0 127 0 0 0 127 0 127 127 127 127 0 127 0 127 127 127 127 170 170 170 0 0 51 0 0 102 0 0 153 0 0 204 0 51 0 0 51 51 0 51 102 0 51 153 0 51 204 0 51 255 0 102 0 0 102 51 0 102 102 0 102 153 0 102 204 0 102 255 0 153 0 0 153 51 0 153 102 0 153 153 0 153 204 0 153 255 0 204 0 0 204 51 0 204 102 0 204 153 0 204 204 0 204 255 0 255 51 0 255 102 0 255 153 0 255 204 51 0 0 51 0 51 51 0 102 51 0 153 51 0 204 51 0 255 51 51 0 51 51 51 51 51 102 51 51 153 51 51 204 51 51 255 51 102 0 51 102 51 51 102 102 51 102 153 51 102 204 51 102 255 51 153 0 51 153 51 51 153 102 51 153 153 51 153 204 51 153 255 51 204 0 51 204 51 51 204 102 51 204 153 51 204 204 51 204 255 51 255 0 51 255 51 51 255 102 51 255 153 51 255 204 51 255 255 102 0 0 102 0 51 102 0 102 102 0 153 102 0 204 102 0 255 102 51 0 102 51 51 102 51 102 102 51 153 102 51 204 102 51 255 102 102 0 102 102 51 102 102 102 102 102 153 102 102 204 102 102 255 102 153 0 102 153 51 102 153 102 102 153 153 102 153 204 102 153 255 102 204 0 102 204 51 102 204 102 102 204 153 102 204 204 102 204 255 102 255 0 102 255 51 102 255 102 102 255 153 102 255 204 102 255 255 153 0 0 153 0 51 153 0 102 153 0 153 153 0 204 153 0 255 153 51 0 153 51 51 153 51 102 153 51 153 153 51 204 153 51 255 153 102 0 153 102 51 153 102 102 153 102 153 153 102 204 153 102 255 153 153 0 153 153 51 153 153 102 153 153 153 153 153 204 153 153 255 153 204 0 153 204 51 153 204 102 153 204 153 153 204 204 153 204 255 153 255 0 153 255 51 153 255 102 153 255 153 153 255 204 153 255 255 204 0 0 204 0 51 204 0 102 204 0 153 204 0 204 204 0 255 204 51 0 204 51 51 204 51 102 204 51 153 204 51 204 204 51 255 204 102 0 204 102 51 204 102 102 204 102 153 204 102 204 204 102 255 204 153 0 204 153 51 204 153 102 204 153 153 204 153 204 204 153 255 204 204 0 204 204 51 204 204 102 204 204 153 204 204 204 204 204 255 204 255 0 204 255 51 204 255 102 204 255 153 204 255 204 204 255 255 255 0 51 255 0 102 255 0 153 255 0 204 255 51 0 255 51 51 255 51 102 255 51 153 255 51 204 255 51 255 255 102 0 255 102 51 255 102 102 255 102 153 255 102 204 255 102 255 255 153 0 255 153 51 255 153 102 255 153 153 255 153 204 255 153 255 255 204 0 255 204 51 255 204 102 255 204 153 255 204 204 255 204 255 255 255 51 255 255 102 255 255 153 255 255 204 255 255 255 9 9 9 19 19 19 29 29 29 39 39 39 49 49 49 58 58 58 68 68 68 78 78 78 98 98 98 107 107 107 117 117 117 137 137 137 147 147 147 156 156 156 166 166 166] |
|
641 |
mask:((ImageMask width:14 height:14) bits:(ByteArray fromPackedString:'@@C??O?<??3??O?<??3??O?<??3??O?<??0@@@@a'); yourself); yourself] |
|
642 |
! |
|
643 |
||
2272 | 644 |
circleIcon |
645 |
"This resource specification was automatically generated |
|
646 |
by the ImageEditor of ST/X." |
|
3442 | 647 |
|
2272 | 648 |
"Do not manually edit this!! If it is corrupted, |
649 |
the ImageEditor may not be able to read the specification." |
|
3442 | 650 |
|
2272 | 651 |
" |
652 |
self circleIcon inspect |
|
653 |
ImageEditor openOnClass:self andSelector:#circleIcon |
|
3442 | 654 |
Icon flushCachedIcons |
655 |
" |
|
656 |
||
657 |
<resource: #image> |
|
658 |
||
659 |
^Icon |
|
660 |
constantNamed:'ImageEditor class circleIcon' |
|
661 |
ifAbsentPut:[(Depth1Image width:14 height:14) bits:(ByteArray fromPackedString:'@@@@@@QAAD@@@C@X@@@@@@@CLA @@@Q@AD@@@@@a') |
|
662 |
colorMapFromArray:#[0 0 0 127 127 127] |
|
663 |
mask:((ImageMask width:14 height:14) bits:(ByteArray fromPackedString:'@@@@@@_@CF@PDC@XH@ BB@HLA PD@1 A<@@@@@a'); yourself); yourself] |
|
2272 | 664 |
! |
665 |
||
1637 | 666 |
copyIcon |
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
667 |
<resource: #image> |
1637 | 668 |
"This resource specification was automatically generated |
669 |
by the ImageEditor of ST/X." |
|
670 |
"Do not manually edit this!! If it is corrupted, |
|
671 |
the ImageEditor may not be able to read the specification." |
|
672 |
" |
|
673 |
self copyIcon inspect |
|
674 |
ImageEditor openOnClass:self andSelector:#copyIcon |
|
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
675 |
Icon flushCachedIcons" |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
676 |
|
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
677 |
^ Icon constantNamed:'ImageEditor class copyIcon' |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
678 |
ifAbsentPut:[ |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
679 |
(Depth2Image new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
680 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
681 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
682 |
photometric:(#palette); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
683 |
bitsPerSample:(#( 2 )); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
684 |
samplesPerPixel:(1); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
685 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
686 |
fromPackedString:'@@@@@@@@@@@** @@J)UUTB*Z*)@*&**PJ)**$B*Z*)@*&**PJ)**$@@Z*)@@F**P@AUUT@@@@@@b'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
687 |
colorMapFromArray:#[ 0 0 0 0 0 128 255 255 255 ]; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
688 |
mask:((ImageMask new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
689 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
690 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
691 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
692 |
fromPackedString:'@@C? O>@??3??O?<??3??O?<??3??@_<A?0@@@@a'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
693 |
yourself); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
694 |
yourself |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
695 |
] |
1637 | 696 |
! |
697 |
||
3417 | 698 |
cropSubImageIcon |
699 |
"This resource specification was automatically generated |
|
700 |
by the ImageEditor of ST/X." |
|
701 |
||
702 |
"Do not manually edit this!! If it is corrupted, |
|
703 |
the ImageEditor may not be able to read the specification." |
|
704 |
||
705 |
" |
|
706 |
self cropSubImageIcon inspect |
|
707 |
ImageEditor openOnClass:self andSelector:#cropSubImageIcon |
|
708 |
Icon flushCachedIcons |
|
709 |
" |
|
710 |
||
711 |
<resource: #image> |
|
712 |
||
713 |
^Icon |
|
714 |
constantNamed:'ImageEditor class cropSubImageIcon' |
|
715 |
ifAbsentPut:[(Depth2Image width:14 height:14) bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@J**@@BUU @@%UX@@IUV@@BUU @@%UX@@J**@@@@@@@@@@@@@@@@@@b') |
|
716 |
colorMapFromArray:#[0 0 0 255 255 255 127 127 127 0 255 0] |
|
3464 | 717 |
mask:((ImageMask width:14 height:14) bits:(ByteArray fromPackedString:'??2@AH@D.@R?9K?$''>R_9I?$''?R_=HA4 @S??@@a'); yourself); yourself] |
3417 | 718 |
! |
719 |
||
3419 | 720 |
darkerIcon |
721 |
"This resource specification was automatically generated |
|
722 |
by the ImageEditor of ST/X." |
|
723 |
||
724 |
"Do not manually edit this!! If it is corrupted, |
|
725 |
the ImageEditor may not be able to read the specification." |
|
726 |
||
727 |
" |
|
728 |
self darkerIcon inspect |
|
729 |
ImageEditor openOnClass:self andSelector:#darkerIcon |
|
730 |
Icon flushCachedIcons |
|
731 |
" |
|
732 |
||
733 |
<resource: #image> |
|
734 |
||
735 |
^Icon |
|
736 |
constantNamed:'ImageEditor class darkerIcon' |
|
737 |
ifAbsentPut:[(Depth8Image width:14 height:14) bits:(ByteArray fromPackedString:' |
|
738 |
@PDA@PDA@PDA@PDA@PG/;>?/;>?/9^W%9^W%9^?/;>?/;>?%9^W%9^W%;>?/;>?/;>W%9^W%9^W/;>?/;>?/9^W%9^W%9^?/;>?/;>?%9^W%9^W%;>?/A XF |
|
739 |
A XFA [%9^W/;><FA XFA XFA.W%9^?/;>?/;>?%9^W%9^W%;>?/;>?/;>W%9^W%9^W/;>?/;>?/9^W%9^W%9^?/;>?/;>?%9^W%9^W%;>?/;>?/;>W%9^W% |
|
740 |
9^TA@PDA@PDA@PDA@PDA@P@a') |
|
741 |
colorMapFromArray:#[88 88 88 0 0 0 255 0 0 0 255 0 0 0 255 0 255 255 255 255 127 255 0 255 127 0 0 0 127 0 0 0 127 0 127 127 127 127 0 127 0 127 127 127 127 170 170 170 0 0 51 0 0 102 0 0 153 0 0 204 0 51 0 0 51 51 0 51 102 0 51 153 0 51 204 0 51 255 0 102 0 0 102 51 0 102 102 0 102 153 0 102 204 0 102 255 0 153 0 0 153 51 0 153 102 0 153 153 0 153 204 0 153 255 0 204 0 0 204 51 0 204 102 0 204 153 0 204 204 0 204 255 0 255 51 0 255 102 0 255 153 0 255 204 51 0 0 51 0 51 51 0 102 51 0 153 51 0 204 51 0 255 51 51 0 51 51 51 51 51 102 51 51 153 51 51 204 51 51 255 51 102 0 51 102 51 51 102 102 51 102 153 51 102 204 51 102 255 51 153 0 51 153 51 51 153 102 51 153 153 51 153 204 51 153 255 51 204 0 51 204 51 51 204 102 51 204 153 51 204 204 51 204 255 51 255 0 51 255 51 51 255 102 51 255 153 51 255 204 51 255 255 102 0 0 102 0 51 102 0 102 102 0 153 102 0 204 102 0 255 102 51 0 102 51 51 102 51 102 102 51 153 102 51 204 102 51 255 102 102 0 102 102 51 102 102 102 102 102 153 102 102 204 102 102 255 102 153 0 102 153 51 102 153 102 102 153 153 102 153 204 102 153 255 102 204 0 102 204 51 102 204 102 102 204 153 102 204 204 102 204 255 102 255 0 102 255 51 102 255 102 102 255 153 102 255 204 102 255 255 153 0 0 153 0 51 153 0 102 153 0 153 153 0 204 153 0 255 153 51 0 153 51 51 153 51 102 153 51 153 153 51 204 153 51 255 153 102 0 153 102 51 153 102 102 153 102 153 153 102 204 153 102 255 153 153 0 153 153 51 153 153 102 153 153 153 153 153 204 153 153 255 153 204 0 153 204 51 153 204 102 153 204 153 153 204 204 153 204 255 153 255 0 153 255 51 153 255 102 153 255 153 153 255 204 153 255 255 204 0 0 204 0 51 204 0 102 204 0 153 204 0 204 204 0 255 204 51 0 204 51 51 204 51 102 204 51 153 204 51 204 204 51 255 204 102 0 204 102 51 204 102 102 204 102 153 204 102 204 204 102 255 204 153 0 204 153 51 204 153 102 204 153 153 204 153 204 204 153 255 204 204 0 204 204 51 204 204 102 204 204 153 204 204 204 204 204 255 204 255 0 204 255 51 204 255 102 204 255 153 204 255 204 204 255 255 255 0 51 255 0 102 255 0 153 255 0 204 255 51 0 255 51 51 255 51 102 255 51 153 255 51 204 255 51 255 255 102 0 255 102 51 255 102 102 255 102 153 255 102 204 255 102 255 255 153 0 255 153 51 255 153 102 255 153 153 255 153 204 255 153 255 255 204 0 255 204 51 255 204 102 255 204 153 255 204 204 255 204 255 255 255 51 255 255 102 255 255 153 255 255 204 255 255 255 9 9 9 19 19 19 29 29 29 39 39 39 49 49 49 58 58 58 68 68 68 78 78 78 98 98 98 107 107 107 117 117 117 137 137 137 147 147 147 156 156 156 166 166 166] |
|
742 |
mask:((ImageMask width:14 height:14) bits:(ByteArray fromPackedString:'@@C??O?<??3??O?<??3??O?<??3??O?<??0@@@@a'); yourself); yourself] |
|
743 |
! |
|
744 |
||
2155 | 745 |
defaultIcon |
746 |
<resource: #programImage> |
|
747 |
||
748 |
^ ToolbarIconLibrary startImageEditorIcon |
|
749 |
! |
|
750 |
||
3419 | 751 |
editIcon |
752 |
"This resource specification was automatically generated |
|
753 |
by the ImageEditor of ST/X." |
|
754 |
||
755 |
"Do not manually edit this!! If it is corrupted, |
|
756 |
the ImageEditor may not be able to read the specification." |
|
757 |
||
758 |
" |
|
759 |
self editIcon inspect |
|
760 |
ImageEditor openOnClass:self andSelector:#editIcon |
|
761 |
Icon flushCachedIcons |
|
762 |
" |
|
763 |
||
764 |
<resource: #image> |
|
765 |
||
766 |
^Icon |
|
767 |
constantNamed:'ImageEditor class editIcon' |
|
768 |
ifAbsentPut:[(Depth8Image width:15 height:16) bits:(ByteArray fromPackedString:' |
|
769 |
@@@@@@@3V41AJ0T@@@@@@@@@@B1(TD4>EP@@@@@@@@@@@CA!!S4X2D@@@@@@@@@@@LV)XTTHX@@@@@@@@@@@@K6UTS$LR@@@@@@@@@@@9OE9VRQ8@@@@@@@@@ |
|
770 |
@@@8Z5%WR!!P@@@@@@@@@@B8;X5)RG2@@@@@@@@@@@CY-W51SF @@@@@@@@@@@B5)XE4%E0@@@@@@@@@@@B%,Y3TO@@@@@@@@@@@@@BM,M04@@@@@@@@@@@@@ |
|
771 |
@@ IDP@@@@@@@@@@@@@@@@\K@@@@@@@@@@@@@@@@@A,@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') |
|
772 |
colorMapFromArray:#[0 0 0 0 137 0 0 206 0 87 87 87 133 60 36 145 109 112 155 31 0 160 115 98 161 124 106 163 140 130 166 46 5 169 113 95 174 218 230 182 93 58 183 59 8 186 100 65 192 147 138 193 129 103 193 132 116 195 100 52 195 120 93 197 82 32 204 208 220 205 177 176 207 90 27 210 109 64 210 140 105 213 175 169 213 217 227 215 172 138 220 114 42 222 120 43 222 209 212 223 137 33 223 153 96 226 180 137 228 90 9 228 142 66 232 174 56 234 184 145 240 178 78 241 195 142 241 212 187 242 102 12 242 177 95 245 202 137 245 209 172 247 181 30 247 183 8 247 198 128 248 122 26 248 194 1 248 198 0 248 201 137 248 203 113 248 214 181 249 193 57 249 210 160 250 206 0 253 222 69 253 226 47 254 116 14 254 128 21 254 136 5 254 141 47 254 144 8 254 147 36 254 147 47 254 158 0 254 158 1 254 159 21 254 161 10 254 162 0 254 165 54 254 165 69 254 167 2 254 167 5 254 171 10 254 176 36 254 177 17 254 178 11 254 181 24 254 184 75 254 184 94 254 187 34 254 191 0 254 191 42 254 191 54 254 194 26 254 197 55 254 201 65 254 203 3 254 203 78 254 203 97 254 207 47 254 209 81 254 212 90 254 213 16 254 214 81 254 216 73 254 219 0 254 220 37 254 223 0 254 225 166 254 226 7 254 226 119 254 231 26 254 231 65 254 231 201 254 239 98] |
|
773 |
mask:((Depth1Image width:15 height:16) bits:(ByteArray fromPackedString:'A>@O0@?@G8@_ C<@O0A?@G8@_ A<@G @\@A @D@@@@@b'); yourself); yourself] |
|
774 |
! |
|
775 |
||
3418 | 776 |
emptyIcon |
777 |
"This resource specification was automatically generated |
|
778 |
by the ImageEditor of ST/X." |
|
779 |
||
780 |
"Do not manually edit this!! If it is corrupted, |
|
781 |
the ImageEditor may not be able to read the specification." |
|
782 |
||
783 |
" |
|
784 |
self emptyIcon inspect |
|
785 |
ImageEditor openOnClass:self andSelector:#emptyIcon |
|
786 |
Icon flushCachedIcons |
|
787 |
" |
|
788 |
||
789 |
<resource: #image> |
|
790 |
||
791 |
^Icon |
|
792 |
constantNamed:'ImageEditor class emptyIcon' |
|
793 |
ifAbsentPut:[(Depth4Image width:14 height:14) bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
794 |
@@@@@@@@@@@b') |
|
795 |
colorMapFromArray:#[0 0 0] |
|
796 |
mask:((ImageMask width:14 height:14) bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a'); yourself); yourself] |
|
797 |
! |
|
798 |
||
799 |
emptyIcon2 |
|
800 |
"This resource specification was automatically generated |
|
801 |
by the ImageEditor of ST/X." |
|
802 |
||
803 |
"Do not manually edit this!! If it is corrupted, |
|
804 |
the ImageEditor may not be able to read the specification." |
|
805 |
||
806 |
" |
|
807 |
self emptyIcon2 inspect |
|
808 |
ImageEditor openOnClass:self andSelector:#emptyIcon2 |
|
809 |
Icon flushCachedIcons |
|
810 |
" |
|
811 |
||
812 |
<resource: #image> |
|
813 |
||
814 |
^Icon |
|
815 |
constantNamed:'ImageEditor class emptyIcon2' |
|
816 |
ifAbsentPut:[(Depth4Image width:28 height:14) bits:(ByteArray fromPackedString:' |
|
817 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
818 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
819 |
@@@@@@@@@@@@@@@@@@@@@@@a') |
|
820 |
colorMapFromArray:#[0 0 0] |
|
821 |
mask:((Depth1Image width:28 height:14) bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b'); yourself); yourself] |
|
822 |
! |
|
823 |
||
3405 | 824 |
fillCircleIcon |
825 |
"This resource specification was automatically generated |
|
826 |
by the ImageEditor of ST/X." |
|
827 |
||
828 |
"Do not manually edit this!! If it is corrupted, |
|
829 |
the ImageEditor may not be able to read the specification." |
|
830 |
||
831 |
" |
|
832 |
self fillCircleIcon inspect |
|
833 |
ImageEditor openOnClass:self andSelector:#fillCircleIcon |
|
834 |
Icon flushCachedIcons |
|
835 |
" |
|
836 |
||
837 |
<resource: #image> |
|
838 |
||
839 |
^Icon |
|
840 |
constantNamed:'ImageEditor class fillCircleIcon' |
|
3443 | 841 |
ifAbsentPut:[(Depth1Image width:14 height:14) bits:(ByteArray fromPackedString:'@@@@@@QA@@@@@B@H@@@@@@@CH@ @@@@@AD@@@@@a') |
842 |
colorMapFromArray:#[0 0 0 127 127 127] |
|
843 |
mask:((ImageMask width:14 height:14) bits:(ByteArray fromPackedString:'@@@@@@_@C>@_<C?8O? ?>C?8O? _<@? A<@@@@@a'); yourself); yourself] |
|
3405 | 844 |
! |
845 |
||
3418 | 846 |
fillDiagonalGradientRectIcon |
847 |
"This resource specification was automatically generated |
|
848 |
by the ImageEditor of ST/X." |
|
849 |
||
850 |
"Do not manually edit this!! If it is corrupted, |
|
851 |
the ImageEditor may not be able to read the specification." |
|
852 |
||
853 |
" |
|
854 |
self fillDiagonalGradientRectIcon inspect |
|
855 |
ImageEditor openOnClass:self andSelector:#fillDiagonalGradientRectIcon |
|
856 |
Icon flushCachedIcons |
|
857 |
" |
|
858 |
||
859 |
<resource: #image> |
|
860 |
||
861 |
^Icon |
|
862 |
constantNamed:'ImageEditor class fillDiagonalGradientRectIcon' |
|
863 |
ifAbsentPut:[(Depth4Image width:14 height:14) bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@QDQDQD@@@DQDQDQ@@@ADH"H"H@@@QBH"H"@@@DP"L3L0@@ADH#L3L@@@QBH3DQ@@@DP"L1DP@@ADH#LQD@@@@@@@@@ |
|
864 |
@@@@@@@@@@@b') |
|
865 |
colorMapFromArray:#[0 0 0 255 0 0 127 0 0 191 0 0 91 0 0] |
|
866 |
mask:((ImageMask width:14 height:14) bits:(ByteArray fromPackedString:'@@@@@C?0O?@?<C?0O?@?<C?0O?@?<C?0@@@@@@@a'); yourself); yourself] |
|
867 |
! |
|
868 |
||
2871 | 869 |
fillGradientRectIcon |
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
870 |
<resource: #image> |
2871 | 871 |
"This resource specification was automatically generated |
872 |
by the ImageEditor of ST/X." |
|
873 |
"Do not manually edit this!! If it is corrupted, |
|
874 |
the ImageEditor may not be able to read the specification." |
|
875 |
" |
|
876 |
self fillGradientRectIcon inspect |
|
877 |
ImageEditor openOnClass:self andSelector:#fillGradientRectIcon |
|
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
878 |
Icon flushCachedIcons" |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
879 |
|
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
880 |
^ Icon constantNamed:'ImageEditor class fillGradientRectIcon' |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
881 |
ifAbsentPut:[ |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
882 |
(Depth4Image new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
883 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
884 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
885 |
photometric:(#palette); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
886 |
bitsPerSample:(#[ 4 ]); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
887 |
samplesPerPixel:(1); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
888 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
889 |
fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ADQDQDQ@@@QDQDQDP@@BH"H"H"@@@"H"H"H @@L3L3L3L@@CL3L3L3@@@QDQDQDP@@DQDQDQD@@@@@@@@@ |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
890 |
@@@@@@@@@@@b'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
891 |
colorMapFromArray:#[ 0 0 0 255 0 0 127 0 0 191 0 0 63 0 0 ]; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
892 |
mask:((ImageMask new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
893 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
894 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
895 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
896 |
fromPackedString:'@@@@@C?0O?@?<C?0O?@?<C?0O?@?<C?0@@@@@@@a'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
897 |
yourself); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
898 |
yourself |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
899 |
] |
2871 | 900 |
! |
901 |
||
902 |
fillHorizontalGradientRectIcon |
|
903 |
"This resource specification was automatically generated |
|
904 |
by the ImageEditor of ST/X." |
|
3418 | 905 |
|
2871 | 906 |
"Do not manually edit this!! If it is corrupted, |
907 |
the ImageEditor may not be able to read the specification." |
|
3418 | 908 |
|
2871 | 909 |
" |
910 |
self fillHorizontalGradientRectIcon inspect |
|
911 |
ImageEditor openOnClass:self andSelector:#fillHorizontalGradientRectIcon |
|
3418 | 912 |
Icon flushCachedIcons |
913 |
" |
|
914 |
||
915 |
<resource: #image> |
|
916 |
||
917 |
^Icon |
|
918 |
constantNamed:'ImageEditor class fillHorizontalGradientRectIcon' |
|
919 |
ifAbsentPut:[(Depth4Image width:14 height:14) bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@ADH#LQD@@@QBH3DQ@@@DP"L1DP@@ADH#LQD@@@QBH3DQ@@@DP"L1DP@@ADH#LQD@@@QBH3DQ@@@DP"L1DP@@ADH#LQD@@@@@@@@@ |
|
920 |
@@@@@@@@@@@b') |
|
921 |
colorMapFromArray:#[0 0 0 255 0 0 127 0 0 191 0 0 91 0 0] |
|
922 |
mask:((ImageMask width:14 height:14) bits:(ByteArray fromPackedString:'@@@@@C?0O?@?<C?0O?@?<C?0O?@?<C?0@@@@@@@a'); yourself); yourself] |
|
2871 | 923 |
! |
924 |
||
1637 | 925 |
fillIcon |
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
926 |
<resource: #image> |
1637 | 927 |
"This resource specification was automatically generated |
928 |
by the ImageEditor of ST/X." |
|
929 |
"Do not manually edit this!! If it is corrupted, |
|
930 |
the ImageEditor may not be able to read the specification." |
|
931 |
" |
|
932 |
self fillIcon inspect |
|
933 |
ImageEditor openOnClass:self andSelector:#fillIcon |
|
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
934 |
Icon flushCachedIcons" |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
935 |
|
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
936 |
^ Icon constantNamed:'ImageEditor class fillIcon' |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
937 |
ifAbsentPut:[ |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
938 |
(Depth2Image new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
939 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
940 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
941 |
photometric:(#palette); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
942 |
bitsPerSample:(#( 2 )); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
943 |
samplesPerPixel:(1); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
944 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
945 |
fromPackedString:'@@@@@@@@@@@@@ @@@@*H@@D*(@@DUUP@EAUU@AAEU@@@@U@@DDA@@@@@@@@PP@@@@@@@@@@@@@@b'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
946 |
colorMapFromArray:#[ 0 0 0 255 0 0 255 255 255 ]; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
947 |
mask:((ImageMask new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
948 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
949 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
950 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
951 |
fromPackedString:'C @Q@BN@I<@?8C?0[?!!G<@O P\@@ D@@@@@@@@@a'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
952 |
yourself); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
953 |
yourself |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
954 |
] |
1637 | 955 |
! |
956 |
||
957 |
fillRectIcon |
|
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
958 |
<resource: #image> |
1637 | 959 |
"This resource specification was automatically generated |
960 |
by the ImageEditor of ST/X." |
|
961 |
"Do not manually edit this!! If it is corrupted, |
|
962 |
the ImageEditor may not be able to read the specification." |
|
963 |
" |
|
964 |
self fillRectIcon inspect |
|
965 |
ImageEditor openOnClass:self andSelector:#fillRectIcon |
|
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
966 |
Icon flushCachedIcons" |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
967 |
|
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
968 |
^ Icon constantNamed:'ImageEditor class fillRectIcon' |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
969 |
ifAbsentPut:[ |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
970 |
(Depth1Image new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
971 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
972 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
973 |
photometric:(#palette); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
974 |
bitsPerSample:(#( 1 )); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
975 |
samplesPerPixel:(1); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
976 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
977 |
fromPackedString:'@@@@@@@A@@@@@@@@@@@@@@@@@@@@@@@@@@D@@@@a'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
978 |
colorMapFromArray:#[ 0 0 0 255 0 0 ]; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
979 |
mask:((ImageMask new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
980 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
981 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
982 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
983 |
fromPackedString:'@@@@@C?0O?@?<C?0O?@?<C?0O?@?<C?0@@@@@@@a'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
984 |
yourself); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
985 |
yourself |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
986 |
] |
1637 | 987 |
! |
988 |
||
2871 | 989 |
fillVerticalGradientRectIcon |
990 |
"This resource specification was automatically generated |
|
991 |
by the ImageEditor of ST/X." |
|
3418 | 992 |
|
2871 | 993 |
"Do not manually edit this!! If it is corrupted, |
994 |
the ImageEditor may not be able to read the specification." |
|
3418 | 995 |
|
2871 | 996 |
" |
3418 | 997 |
self fillVerticalGradientRectIcon inspect |
998 |
ImageEditor openOnClass:self andSelector:#fillVerticalGradientRectIcon |
|
999 |
Icon flushCachedIcons |
|
1000 |
" |
|
1001 |
||
1002 |
<resource: #image> |
|
1003 |
||
1004 |
^Icon |
|
1005 |
constantNamed:'ImageEditor class fillVerticalGradientRectIcon' |
|
1006 |
ifAbsentPut:[(Depth4Image width:14 height:14) bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@DQDQDQD@@ADQDQDQ@@@H"H"H"H@@BH"H"H"@@@3L3L3L0@@L3L3L3L@@ADQDQDQ@@@QDQDQDP@@DQDQDQD@@@@@@@@@ |
|
1007 |
@@@@@@@@@@@b') |
|
1008 |
colorMapFromArray:#[0 0 0 255 0 0 127 0 0 191 0 0 91 0 0] |
|
1009 |
mask:((ImageMask width:14 height:14) bits:(ByteArray fromPackedString:'@@@@@C?0O?@?<C?0O?@?<C?0O?@?<C?0@@@@@@@a'); yourself); yourself] |
|
2871 | 1010 |
! |
1011 |
||
2837 | 1012 |
flipHorizontalIcon |
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1013 |
<resource: #image> |
2837 | 1014 |
"This resource specification was automatically generated |
1015 |
by the ImageEditor of ST/X." |
|
1016 |
"Do not manually edit this!! If it is corrupted, |
|
1017 |
the ImageEditor may not be able to read the specification." |
|
1018 |
" |
|
1019 |
self flipHorizontalIcon inspect |
|
1020 |
ImageEditor openOnClass:self andSelector:#flipHorizontalIcon |
|
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1021 |
Icon flushCachedIcons" |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1022 |
|
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1023 |
^ Icon constantNamed:'ImageEditor class flipHorizontalIcon' |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1024 |
ifAbsentPut:[ |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1025 |
(Depth1Image new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1026 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1027 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1028 |
photometric:(#palette); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1029 |
bitsPerSample:(#( 1 )); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1030 |
samplesPerPixel:(1); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1031 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1032 |
fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1033 |
colorMapFromArray:#[ 0 0 0 ]; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1034 |
mask:((ImageMask new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1035 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1036 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1037 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1038 |
fromPackedString:'@@@A@C?8HP )JC$8_?1??C$8JR !!BC?8@P@@@@@a'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1039 |
yourself); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1040 |
yourself |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1041 |
] |
2837 | 1042 |
! |
1043 |
||
1044 |
flipVerticalIcon |
|
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1045 |
<resource: #image> |
2837 | 1046 |
"This resource specification was automatically generated |
1047 |
by the ImageEditor of ST/X." |
|
1048 |
"Do not manually edit this!! If it is corrupted, |
|
1049 |
the ImageEditor may not be able to read the specification." |
|
1050 |
" |
|
1051 |
self flipVerticalIcon inspect |
|
1052 |
ImageEditor openOnClass:self andSelector:#flipVerticalIcon |
|
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1053 |
Icon flushCachedIcons" |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1054 |
|
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1055 |
^ Icon constantNamed:'ImageEditor class flipVerticalIcon' |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1056 |
ifAbsentPut:[ |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1057 |
(Depth1Image new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1058 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1059 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1060 |
photometric:(#palette); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1061 |
bitsPerSample:(#( 1 )); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1062 |
samplesPerPixel:(1); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1063 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1064 |
fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1065 |
colorMapFromArray:#[ 0 0 0 ]; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1066 |
mask:((ImageMask new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1067 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1068 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1069 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1070 |
fromPackedString:'@@@C@C?0I9@/4BLPH1A?>BLPH1@/4B^PO?@C@@@a'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1071 |
yourself); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1072 |
yourself |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1073 |
] |
2837 | 1074 |
! |
1075 |
||
737 | 1076 |
leftMouseKeyIcon |
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1077 |
<resource: #image> |
737 | 1078 |
"This resource specification was automatically generated |
1079 |
by the ImageEditor of ST/X." |
|
1080 |
"Do not manually edit this!! If it is corrupted, |
|
1081 |
the ImageEditor may not be able to read the specification." |
|
1082 |
" |
|
1405 | 1083 |
self leftMouseKeyIcon inspect |
737 | 1084 |
ImageEditor openOnClass:self andSelector:#leftMouseKeyIcon |
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1085 |
Icon flushCachedIcons" |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1086 |
|
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1087 |
^ Icon constantNamed:'ImageEditor class leftMouseKeyIcon' |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1088 |
ifAbsentPut:[ |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1089 |
(Depth2Image new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1090 |
width:16; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1091 |
height:16; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1092 |
photometric:(#palette); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1093 |
bitsPerSample:(#( 2 )); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1094 |
samplesPerPixel:(1); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1095 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1096 |
fromPackedString:'@@@@@@@@@@@@@@@@@EJJ@@AR" @@T((@@@@@@@B** @@**(@@J**@@B** @@**(@@J**@@@**@@@@@@@@@@@@@@a'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1097 |
colorMapFromArray:#[ 0 0 0 255 0 0 255 255 255 ]; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1098 |
mask:((ImageMask new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1099 |
width:16; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1100 |
height:16; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1101 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1102 |
fromPackedString:'@@@@@@?0G? _>A?8G? _>A?8G? _>A?8G? O<@_ @@@b'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1103 |
yourself); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1104 |
yourself |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1105 |
] |
1433 | 1106 |
! |
737 | 1107 |
|
3405 | 1108 |
maskOutsideCircleIcon |
1109 |
"This resource specification was automatically generated |
|
1110 |
by the ImageEditor of ST/X." |
|
1111 |
||
1112 |
"Do not manually edit this!! If it is corrupted, |
|
1113 |
the ImageEditor may not be able to read the specification." |
|
1114 |
||
1115 |
" |
|
1116 |
self maskOutsideCircleIcon inspect |
|
1117 |
ImageEditor openOnClass:self andSelector:#maskOutsideCircleIcon |
|
1118 |
Icon flushCachedIcons |
|
1119 |
" |
|
1120 |
||
1121 |
<resource: #image> |
|
1122 |
||
1123 |
^Icon |
|
1124 |
constantNamed:'ImageEditor class maskOutsideCircleIcon' |
|
1125 |
ifAbsentPut:[(Depth1Image width:14 height:14) bits:(ByteArray fromPackedString:'??3??O1=<A3 CN@L0@S@AL@G8@3 CO@\?G3??@@a') |
|
3407 | 1126 |
colorMapFromArray:#[0 0 0 255 127 127] |
3405 | 1127 |
mask:((ImageMask width:14 height:14) bits:(ByteArray fromPackedString:'??3??O?<??3??O?<??3??O?<??3??O?<??3??@@a'); yourself); yourself] |
1128 |
! |
|
1129 |
||
1130 |
maskOutsideRectangleIcon |
|
1131 |
"This resource specification was automatically generated |
|
1132 |
by the ImageEditor of ST/X." |
|
1133 |
||
1134 |
"Do not manually edit this!! If it is corrupted, |
|
1135 |
the ImageEditor may not be able to read the specification." |
|
1136 |
||
1137 |
" |
|
1138 |
self maskOutsideRectangleIcon inspect |
|
1139 |
ImageEditor openOnClass:self andSelector:#maskOutsideRectangleIcon |
|
1140 |
Icon flushCachedIcons |
|
1141 |
" |
|
1142 |
||
1143 |
<resource: #image> |
|
1144 |
||
1145 |
^Icon |
|
1146 |
constantNamed:'ImageEditor class maskOutsideRectangleIcon' |
|
1147 |
ifAbsentPut:[(Depth1Image width:14 height:14) bits:(ByteArray fromPackedString:'??3??L@M0@3@CL@L0@3@CL@L0@3@CL@L??7??@@a') |
|
3407 | 1148 |
colorMapFromArray:#[0 0 0 255 127 127] |
3405 | 1149 |
mask:((ImageMask width:14 height:14) bits:(ByteArray fromPackedString:'??3??O?<??3??O?<??3??O?<??3??O?<??3??@@a'); yourself); yourself] |
1150 |
! |
|
1151 |
||
1637 | 1152 |
pasteIcon |
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1153 |
<resource: #image> |
1637 | 1154 |
"This resource specification was automatically generated |
1155 |
by the ImageEditor of ST/X." |
|
1156 |
"Do not manually edit this!! If it is corrupted, |
|
1157 |
the ImageEditor may not be able to read the specification." |
|
1158 |
" |
|
1159 |
self pasteIcon inspect |
|
1160 |
ImageEditor openOnClass:self andSelector:#pasteIcon |
|
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1161 |
Icon flushCachedIcons" |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1162 |
|
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1163 |
^ Icon constantNamed:'ImageEditor class pasteIcon' |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1164 |
ifAbsentPut:[ |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1165 |
(Depth4Image new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1166 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1167 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1168 |
photometric:(#palette); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1169 |
bitsPerSample:(#( 4 )); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1170 |
samplesPerPixel:(1); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1171 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1172 |
fromPackedString:'@@@@@@@@@@@@AU@@@@@CHE@E@2@@@ QDQD@0@@L@@@@@H@@BL#H2L#@@@QDQDQL @@D3L@@@@@@AL3A&Y&X@@SL0Y A&@@D3LF@@A @AL3A&@FX@@QDPY&Y& |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1173 |
@@@@@@@@@@@b'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1174 |
colorMapFromArray:#[ 0 0 0 0 0 128 128 128 0 128 128 128 212 208 200 255 255 0 255 255 255 ]; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1175 |
mask:((ImageMask new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1176 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1177 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1178 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1179 |
fromPackedString:'C0A?8O?0??C?<O?0??C?>O?8??#?>O?8_? G>@@a'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1180 |
yourself); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1181 |
yourself |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1182 |
] |
1637 | 1183 |
! |
1184 |
||
1185 |
pasteUnderIcon |
|
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1186 |
<resource: #image> |
1637 | 1187 |
"This resource specification was automatically generated |
1188 |
by the ImageEditor of ST/X." |
|
1189 |
"Do not manually edit this!! If it is corrupted, |
|
1190 |
the ImageEditor may not be able to read the specification." |
|
1191 |
" |
|
1192 |
self pasteUnderIcon inspect |
|
1193 |
ImageEditor openOnClass:self andSelector:#pasteUnderIcon |
|
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1194 |
Icon flushCachedIcons" |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1195 |
|
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1196 |
^ Icon constantNamed:'ImageEditor class pasteUnderIcon' |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1197 |
ifAbsentPut:[ |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1198 |
(Depth4Image new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1199 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1200 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1201 |
photometric:(#palette); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1202 |
bitsPerSample:(#( 4 )); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1203 |
samplesPerPixel:(1); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1204 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1205 |
fromPackedString:'@@@@@@@@@@@@AU@@@@@CHE@E@2@@@ QDQD@0@@L@@@@@H@@BL#H2L#@@@QDQDQL @@D3L3LP@@@AL3L3E&X@@SL3L0A&@@D3L3@@A @AL3L3@FX@@QDQDQY& |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1206 |
@@@@@@@@@@@b'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1207 |
colorMapFromArray:#[ 0 0 0 0 0 128 128 128 0 128 128 128 212 208 200 255 255 0 255 255 255 ]; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1208 |
mask:((ImageMask new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1209 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1210 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1211 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1212 |
fromPackedString:'C0A?8O?0??C?<O?0??C?>O?8??#?>O?8_? G>@@a'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1213 |
yourself); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1214 |
yourself |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1215 |
] |
1637 | 1216 |
! |
1217 |
||
1218 |
pasteWithMaskIcon |
|
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1219 |
<resource: #image> |
1637 | 1220 |
"This resource specification was automatically generated |
1221 |
by the ImageEditor of ST/X." |
|
1222 |
"Do not manually edit this!! If it is corrupted, |
|
1223 |
the ImageEditor may not be able to read the specification." |
|
1224 |
" |
|
1225 |
self pasteWithMaskIcon inspect |
|
1226 |
ImageEditor openOnClass:self andSelector:#pasteWithMaskIcon |
|
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1227 |
Icon flushCachedIcons" |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1228 |
|
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1229 |
^ Icon constantNamed:'ImageEditor class pasteWithMaskIcon' |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1230 |
ifAbsentPut:[ |