ImageEditor.st
changeset 1433 df38b2a5d335
parent 1424 d7367ae7f85e
child 1435 f39893848245
equal deleted inserted replaced
1432:c032f34cd7bb 1433:df38b2a5d335
   366 
   366 
   367     <resource: #image>
   367     <resource: #image>
   368 
   368 
   369     ^Icon
   369     ^Icon
   370         constantNamed:#'ImageEditor leftMouseKeyIcon'
   370         constantNamed:#'ImageEditor leftMouseKeyIcon'
   371         ifAbsentPut:[(Depth2Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@EJJ@@AR" @@T((@@@@@@@B** @@**(@@J**@@B** @@**(@@J**@@@**@@@@@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@?0G? _>A?8G? _>A?8G? _>A?8G? O<@_ @@@b') ; yourself); yourself]!
   371         ifAbsentPut:[(Depth2Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@EJJ@@AR" @@T((@@@@@@@B** @@**(@@J**@@B** @@**(@@J**@@@**@@@@@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@?0G? _>A?8G? _>A?8G? _>A?8G? O<@_ @@@b') ; yourself); yourself]
       
   372 !
   372 
   373 
   373 rightMouseKeyIcon
   374 rightMouseKeyIcon
   374     "This resource specification was automatically generated
   375     "This resource specification was automatically generated
   375      by the ImageEditor of ST/X."
   376      by the ImageEditor of ST/X."
   376 
   377 
   384 
   385 
   385     <resource: #image>
   386     <resource: #image>
   386 
   387 
   387     ^Icon
   388     ^Icon
   388         constantNamed:#'ImageEditor rightMouseKeyIcon'
   389         constantNamed:#'ImageEditor rightMouseKeyIcon'
   389         ifAbsentPut:[(Depth2Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@JJE@@B"!!P@@((T@@@@@@@B** @@**(@@J**@@B** @@**(@@J**@@@**@@@@@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@?0G? _>A?8G? _>A?8G? _>A?8G? O<@_ @@@b') ; yourself); yourself]! !
   390         ifAbsentPut:[(Depth2Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@JJE@@B"!!P@@((T@@@@@@@B** @@**(@@J**@@B** @@**(@@J**@@@**@@@@@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@?0G? _>A?8G? _>A?8G? _>A?8G? O<@_ @@@b') ; yourself); yourself]
       
   391 ! !
   390 
   392 
   391 !ImageEditor class methodsFor:'interface specs'!
   393 !ImageEditor class methodsFor:'interface specs'!
   392 
   394 
   393 dialogSpecForNewImage
   395 dialogSpecForNewImage
   394     "This resource specification was automatically generated
   396     "This resource specification was automatically generated
   962                   #value: #doShowStoreString
   964                   #value: #doShowStoreString
   963                   #activeHelpKey: #fileShowStoreString
   965                   #activeHelpKey: #fileShowStoreString
   964                   #enabled: #imageIsLoaded
   966                   #enabled: #imageIsLoaded
   965                 )
   967                 )
   966                #(#MenuItem
   968                #(#MenuItem
       
   969                   #label: 'Edit Mask'
       
   970                   #translateLabel: true
       
   971                   #value: #doEditMask
       
   972                   #activeHelpKey: #fileEditMask
       
   973                   #enabled: #imageIsLoaded
       
   974                 )
       
   975                #(#MenuItem
   967                   #label: '-'
   976                   #label: '-'
   968                 )
   977                 )
   969                #(#MenuItem
   978                #(#MenuItem
   970                   #label: 'Print'
   979                   #label: 'Print'
   971                   #translateLabel: true
   980                   #translateLabel: true
  2675 
  2684 
  2676     "Created: / 7.9.1998 / 13:00:19 / cg"
  2685     "Created: / 7.9.1998 / 13:00:19 / cg"
  2677     "Modified: / 7.9.1998 / 14:26:52 / cg"
  2686     "Modified: / 7.9.1998 / 14:26:52 / cg"
  2678 !
  2687 !
  2679 
  2688 
       
  2689 doEditMask
       
  2690     ""
       
  2691 
       
  2692     self image mask edit
       
  2693 !
       
  2694 
  2680 doFlipHorizontal
  2695 doFlipHorizontal
  2681     "flips horizontally current image"
  2696     "flips horizontally current image"
  2682 
  2697 
  2683     imageEditView flipHorizontal
  2698     imageEditView flipHorizontal
  2684 !
  2699 !