Logo Search packages:      
Sourcecode: djvulibre version File versions

void GRectMapper::set_input ( const GRect rect  ) 

Sets the input rectangle.

Definition at line 309 of file GRect.cpp.

References GRect::isempty(), GRect::xmax, GRect::xmin, GRect::ymax, and GRect::ymin.

Referenced by DjVuImage::get_decoded_anno(), DjVuImage::map(), DjVuToPS::print(), and DjVuImage::unmap().

{
  if (rect.isempty())
    G_THROW( ERR_MSG("GRect.empty_rect1") );
  rectFrom = rect;
  if (code & SWAPXY)
  {
    iswap(rectFrom.xmin, rectFrom.ymin);
    iswap(rectFrom.xmax, rectFrom.ymax);
  }
  rw = rh = GRatio();
}


Generated by  Doxygen 1.6.0   Back to index