Changeset 40 in Sophya
- Timestamp:
- Mar 6, 1997, 8:57:18 PM (29 years ago)
- Location:
- trunk/SophyaPI/PI
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PI/picmapgen.cc
r2 r40 64 64 { 65 65 case CMAP_GREY32 : 66 for(int i=0; i<mNCol; i++)66 {for(int i=0; i<mNCol; i++) 67 67 { 68 68 mycol.red = mycol.green = mycol.blue = 3535+(i*62000/32); … … 70 70 } 71 71 break; 72 72 } 73 73 case CMAP_GREYINV32 : 74 for(int i=0; i<mNCol; i++)74 {for(int i=0; i<mNCol; i++) 75 75 { 76 76 mycol.red = mycol.green = mycol.blue = 65535-(i*62000/32); … … 78 78 } 79 79 break; 80 80 } 81 81 case CMAP_COL16 : 82 for(int i=0; i<mNCol; i++)82 {for(int i=0; i<mNCol; i++) 83 83 { 84 84 mycol.red = (int)(R_RGB1[i]*65535.); … … 88 88 } 89 89 break; 90 90 } 91 91 case CMAP_COLRJ32 : 92 for(int i=0; i<mNCol; i++)92 {for(int i=0; i<mNCol; i++) 93 93 { 94 94 if (i < 12) … … 105 105 } 106 106 break; 107 107 } 108 108 case CMAP_COLBR32 : 109 for(int i=0; i<mNCol; i++)109 {for(int i=0; i<mNCol; i++) 110 110 { 111 111 if (i < 5) … … 136 136 } 137 137 break; 138 138 } 139 139 case CMAP_COLRV32 : 140 for(int i=0; i<mNCol; i++)140 {for(int i=0; i<mNCol; i++) 141 141 { 142 142 if (i < 8) … … 155 155 } 156 156 break; 157 157 } 158 158 default : 159 for(int i=0; i<mNCol; i++)159 {for(int i=0; i<mNCol; i++) 160 160 { 161 161 mycol.green = mycol.red = mycol.blue = 0; … … 163 163 } 164 164 break; 165 } 165 166 } 166 167 } -
trunk/SophyaPI/PI/picmapx.cc
r37 r40 31 31 mColors = new PIXColor[n]; 32 32 mColRGB = new PIColor[n]; 33 for(int i=0; i<n; i++)33 {for(int i=0; i<n; i++) 34 34 { mColors[i] = BlackPixel(PIXDisplay(), PIXScreen()); 35 35 mColRGB[i].red = mColRGB[i].green = mColRGB[i].blue = 0; } 36 // printf("PIColorMapX::PIColorMapX(CMapId, int) %d %d \n", mNCol, Type());36 }// printf("PIColorMapX::PIColorMapX(CMapId, int) %d %d \n", mNCol, Type()); 37 37 38 38 return; … … 145 145 bpix = BlackPixel(PIXDisplay(), PIXScreen()); 146 146 blc.red = blc.green = blc.blue = 0; 147 for (int i=0; i<mNCol; i++)147 {for (int i=0; i<mNCol; i++) 148 148 { mColors[i] = bpix; mColRGB[i] = blc; } 149 149 } 150 150 printf("PIColorMapX::FreeColors() Type= %d mNCol= %d \n", 151 151 Type(), NCol()); -
trunk/SophyaPI/PI/psfile.h
r34 r40 145 145 146 146 147 private:148 147 149 148 typedef struct { … … 171 170 typedef list<Page> PageList; /* STL */ 172 171 172 private: 173 173 174 174 /* --> Toute la classe */
Note:
See TracChangeset
for help on using the changeset viewer.