Changeset 40 in Sophya


Ignore:
Timestamp:
Mar 6, 1997, 8:57:18 PM (29 years ago)
Author:
aubourg
Message:

on progresse lentement...

Location:
trunk/SophyaPI/PI
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PI/picmapgen.cc

    r2 r40  
    6464  {
    6565  case CMAP_GREY32 :
    66     for(int i=0; i<mNCol; i++)
     66    {for(int i=0; i<mNCol; i++)
    6767      {
    6868      mycol.red = mycol.green = mycol.blue = 3535+(i*62000/32);
     
    7070      }
    7171    break;
    72 
     72    }
    7373  case CMAP_GREYINV32 :
    74     for(int i=0; i<mNCol; i++)
     74    {for(int i=0; i<mNCol; i++)
    7575      {
    7676      mycol.red = mycol.green = mycol.blue = 65535-(i*62000/32);
     
    7878      }
    7979    break;
    80 
     80    }
    8181  case CMAP_COL16 :
    82     for(int i=0; i<mNCol; i++)
     82    {for(int i=0; i<mNCol; i++)
    8383      {
    8484      mycol.red = (int)(R_RGB1[i]*65535.);
     
    8888      }
    8989    break;
    90 
     90    }
    9191  case CMAP_COLRJ32 :
    92     for(int i=0; i<mNCol; i++)
     92    {for(int i=0; i<mNCol; i++)
    9393      {
    9494      if (i < 12)
     
    105105      }
    106106    break;
    107 
     107    }
    108108  case CMAP_COLBR32 :
    109     for(int i=0; i<mNCol; i++)
     109    {for(int i=0; i<mNCol; i++)
    110110      {
    111111      if (i < 5)
     
    136136      }
    137137    break;
    138 
     138    }
    139139  case CMAP_COLRV32 :
    140     for(int i=0; i<mNCol; i++)
     140    {for(int i=0; i<mNCol; i++)
    141141      {
    142142      if (i < 8)
     
    155155      }
    156156    break;
    157 
     157    }
    158158  default :
    159     for(int i=0; i<mNCol; i++)
     159    {for(int i=0; i<mNCol; i++)
    160160      {
    161161         mycol.green = mycol.red = mycol.blue = 0;
     
    163163      }
    164164    break;
     165    }
    165166  }
    166167}
  • trunk/SophyaPI/PI/picmapx.cc

    r37 r40  
    3131mColors = new PIXColor[n];
    3232mColRGB = new PIColor[n];
    33 for(int i=0; i<n; i++) 
     33{for(int i=0; i<n; i++) 
    3434  { mColors[i] = BlackPixel(PIXDisplay(), PIXScreen());
    3535  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());
    3737
    3838return;
     
    145145bpix = BlackPixel(PIXDisplay(), PIXScreen());
    146146blc.red = blc.green = blc.blue = 0;
    147 for (int i=0; i<mNCol; i++) 
     147{for (int i=0; i<mNCol; i++) 
    148148  { mColors[i] = bpix;   mColRGB[i] = blc; }
    149 
     149}
    150150printf("PIColorMapX::FreeColors()  Type= %d mNCol= %d \n",
    151151       Type(), NCol());
  • trunk/SophyaPI/PI/psfile.h

    r34 r40  
    145145
    146146
    147 private:
    148147
    149148    typedef struct {
     
    171170    typedef list<Page> PageList;  /* STL */
    172171
     172private:
    173173
    174174    /* --> Toute la classe */
Note: See TracChangeset for help on using the changeset viewer.