MCPcopy Create free account
hub / github.com/davisking/dlib / resize_rect

Function resize_rect

dlib/geometry/rectangle.h:693–702  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

691// ----------------------------------------------------------------------------------------
692
693 inline const rectangle resize_rect (
694 const rectangle& rect,
695 unsigned long width,
696 unsigned long height
697 )
698 {
699 return rectangle(rect.left(),rect.top(),
700 rect.left()+width-1,
701 rect.top()+height-1);
702 }
703
704// ----------------------------------------------------------------------------------------
705

Callers 5

set_sizeMethod · 0.85
fit_to_contentsMethod · 0.85
adjust_positionMethod · 0.85
set_sizeMethod · 0.85
set_sizeMethod · 0.85

Calls 3

rectangleClass · 0.70
leftMethod · 0.45
topMethod · 0.45

Tested by

no test coverage detected