Logo Search packages:      
Sourcecode: djvulibre version File versions

int DjVuImage::get_width (  )  const

Returns the width of the DjVu image. This function just extracts this information from the DjVu information component. It returns zero if such a component is not yet available. This gives rotated width if there is any rotation of image. If you need real width, use get_real_width()#.

Definition at line 319 of file DjVuImage.cpp.

References get_info().

Referenced by get_decoded_anno(), get_short_description(), map(), unmap(), and writeXML().

   GP<DjVuInfo> info=get_info();
   return info?((rotate_count&1)?(info->height):(info->width)):0;

Generated by  Doxygen 1.6.0   Back to index