[wadalabfont-kit] / jis2prim / BitmapFont.h  

Diff of /jis2prim/BitmapFont.h

Parent Directory | Revision Log

version 1.2, Fri Feb 22 12:03:48 2002 UTC version 1.3, Mon Mar 4 00:44:36 2002 UTC
Line 16 
Line 16 
  public:   public:
   int getWidth() const { return width; }    int getWidth() const { return width; }
   int getHeight() const { return height; }    int getHeight() const { return height; }
     int getSize() const { return width*height; }
     int getPixelSize() const { return pixels.size(); }
   BitmapFont(){}    BitmapFont(){}
   BitmapFont(const BitmapFont& b){    BitmapFont(const BitmapFont& b){
     width=b.width;      width=b.width;
Line 51 
Line 53 
     }      }
     return bitmap[y*width+x];      return bitmap[y*width+x];
   }    }
   int getIndex(const pixel &px){    int getIndex(const pixel &px) const{
     vector<pixel>::iterator it=find(pixels.begin(),pixels.end(),px);      vector<pixel>::const_iterator it=find(pixels.begin(),pixels.end(),px);
     if(it!=pixels.end()){      if(it!=pixels.end()){
       return it-pixels.begin();        return it-pixels.begin();
     }      }


Generate output suitable for use with a patch program
Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

ktanaka

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help