Logo Search packages:      
Sourcecode: djvulibre version File versions  Download package

int JB2Image::add_blit ( const JB2Blit blit  ) 

Appends a blit to the blit array. This function appends a copy of blit blit# to the blit array and returns the subscript of the new blit. The shape subscript blit.shapeno# must actually designate an already existing shape.

Definition at line 280 of file JB2Image.cpp.

References JB2Dict::get_shape_count(), JB2Blit::shapeno, GArrayTemplate< TYPE >::size(), and GArrayTemplate< TYPE >::touch().

  if (blit.shapeno >= (unsigned int)get_shape_count())
    G_THROW( ERR_MSG("JB2Image.bad_shape") );
  int index = blits.size();
  blits[index] = blit;
  return index;

Generated by  Doxygen 1.6.0   Back to index