ImageEditor.st
changeset 3191 ae97e9478128
parent 3188 351c645c0921
child 3195 32e373ae50fa
equal deleted inserted replaced
3190:a52106100195 3191:ae97e9478128
  1041                             yourself);
  1041                             yourself);
  1042                 yourself
  1042                 yourself
  1043         ]
  1043         ]
  1044 !
  1044 !
  1045 
  1045 
       
  1046 smoothIcon
       
  1047     "This resource specification was automatically generated
       
  1048      by the ImageEditor of ST/X."
       
  1049 
       
  1050     "Do not manually edit this!! If it is corrupted,
       
  1051      the ImageEditor may not be able to read the specification."
       
  1052 
       
  1053     "
       
  1054      self smoothIcon inspect
       
  1055      ImageEditor openOnClass:self andSelector:#smoothIcon
       
  1056      Icon flushCachedIcons
       
  1057     "
       
  1058 
       
  1059     <resource: #image>
       
  1060 
       
  1061     ^Icon
       
  1062         constantNamed:'ImageEditor smoothIcon'
       
  1063         ifAbsentPut:[(Depth4Image new) width:14; height:14; bits:(ByteArray fromPackedString:'@@@@@@@@@@@RH@@@H!!@@HRD@@RD @BHQ@@DRH@@ADP@ADP@@@@@QD@@@@@@@DQ@@@@@@@ADP@@@@@QD@@QD@@BHQ@@DRH@@!!HP@AHR@@D"@@@BHP@@@@@@@@
       
  1064 @@@@@@@@@@@b') ; colorMapFromArray:#[127 126 127 255 0 0 255 255 255]; mask:((ImageMask new) width:14; height:14; bits:(ByteArray fromPackedString:'_?1<_G1<_G1??D_DQ<QG1G?<_G1<_G1<_?0@@@@a') ; yourself); yourself]
       
  1065 !
       
  1066 
  1046 specialCircleIcon
  1067 specialCircleIcon
  1047     <resource: #image>
  1068     <resource: #image>
  1048     "This resource specification was automatically generated
  1069     "This resource specification was automatically generated
  1049      by the ImageEditor of ST/X."
  1070      by the ImageEditor of ST/X."
  1050     "Do not manually edit this!! If it is corrupted,
  1071     "Do not manually edit this!! If it is corrupted,
  1106                 yourself
  1127                 yourself
  1107         ]
  1128         ]
  1108 !
  1129 !
  1109 
  1130 
  1110 sprayIcon
  1131 sprayIcon
  1111     <resource: #image>
       
  1112     "This resource specification was automatically generated
  1132     "This resource specification was automatically generated
  1113      by the ImageEditor of ST/X."
  1133      by the ImageEditor of ST/X."
       
  1134 
  1114     "Do not manually edit this!! If it is corrupted,
  1135     "Do not manually edit this!! If it is corrupted,
  1115      the ImageEditor may not be able to read the specification."
  1136      the ImageEditor may not be able to read the specification."
       
  1137 
  1116     "
  1138     "
  1117      self sprayIcon inspect
  1139      self sprayIcon inspect
  1118      ImageEditor openOnClass:self andSelector:#sprayIcon
  1140      ImageEditor openOnClass:self andSelector:#sprayIcon
  1119      Icon flushCachedIcons"
  1141      Icon flushCachedIcons
  1120     
  1142     "
  1121     ^ Icon constantNamed:'ImageEditor class sprayIcon'
  1143 
  1122         ifAbsentPut:[
  1144     <resource: #image>
  1123             (Depth4Image new)
  1145 
  1124                 width:14;
  1146     ^Icon
  1125                 height:14;
  1147         constantNamed:'ImageEditor sprayIcon'
  1126                 photometric:(#palette);
  1148         ifAbsentPut:[(Depth4Image new) width:14; height:14; bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@P@@@@@@DA@P@@@@@PDA@@@@@@@PDA@@@@@@@PD@@@@"H@@PD@@@H"@@@@@@@ADP@@@@@@@QD@@@@@@@DQ@@@@@@@ADP@@
  1127                 bitsPerSample:(#[ 4 ]);
  1149 @@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((ImageMask new) width:14; height:14; bits:(ByteArray fromPackedString:'@@@@@@@HA%PF*@ITA2 O%@>@C8@O @>@C8@O @@a') ; yourself); yourself]
  1128                 samplesPerPixel:(1);
       
  1129                 bits:(ByteArray 
       
  1130                             fromPackedString:'@@@@@@@@@@@@@@@@@D@@@@@@@DA@@@@@@D@D@@@@@@A@PD@@@@@@A@P@@@@@@@A@P@@@@@@@A@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
       
  1131 @@@@@@@@@@@b');
       
  1132                 colorMapFromArray:#[ 0 0 0 84 84 84 170 170 170 255 255 255 255 0 0 ];
       
  1133                 mask:((ImageMask new)
       
  1134                             width:14;
       
  1135                             height:14;
       
  1136                             bits:(ByteArray 
       
  1137                                         fromPackedString:'@@@@B@@(A)@F*@IPA2 H$@"@BH@H @"@BH@O @@a');
       
  1138                             yourself);
       
  1139                 yourself
       
  1140         ]
       
  1141 ! !
  1150 ! !
  1142 
  1151 
  1143 !ImageEditor class methodsFor:'interface specs'!
  1152 !ImageEditor class methodsFor:'interface specs'!
  1144 
  1153 
  1145 changeHLSDialogSpec
  1154 changeHLSDialogSpec
  3230             labelImage: (ResourceRetriever ImageEditor sprayIcon 'Spray')
  3239             labelImage: (ResourceRetriever ImageEditor sprayIcon 'Spray')
  3231             choice: editMode
  3240             choice: editMode
  3232             choiceValue: spray
  3241             choiceValue: spray
  3233           )
  3242           )
  3234          (MenuItem
  3243          (MenuItem
       
  3244             activeHelpKey: drawModeSmooth
       
  3245             enabled: imageIsLoadedHolder
       
  3246             label: 'Smooth'
       
  3247             translateLabel: true
       
  3248             labelImage: (ResourceRetriever ImageEditor smoothIcon 'Smooth')
       
  3249             choice: editMode
       
  3250             choiceValue: smooth
       
  3251           )
       
  3252          (MenuItem
  3235             activeHelpKey: drawModeBox
  3253             activeHelpKey: drawModeBox
  3236             enabled: imageIsLoadedHolder
  3254             enabled: imageIsLoadedHolder
  3237             label: 'Rect'
  3255             label: 'Rect'
  3238             translateLabel: true
  3256             translateLabel: true
  3239             labelImage: (ResourceRetriever ImageEditor rectIcon 'Rect')
  3257             labelImage: (ResourceRetriever ImageEditor rectIcon 'Rect')