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

Method set_image

dlib/gui_widgets/base_widgets.h:406–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

404 typename image_type
405 >
406 void set_image (
407 const image_type& new_img
408 )
409 {
410 auto_mutex M(m);
411 assign_image_scaled(img,new_img);
412 rectangle old(rect);
413 rect.set_right(rect.left()+num_columns(img)-1);
414 rect.set_bottom(rect.top()+num_rows(img)-1);
415 parent.invalidate_rectangle(rect+old);
416 }
417
418 private:
419

Callers

nothing calls this directly

Calls 7

assign_image_scaledFunction · 0.85
set_rightMethod · 0.80
set_bottomMethod · 0.80
num_columnsFunction · 0.50
num_rowsFunction · 0.50
leftMethod · 0.45
topMethod · 0.45

Tested by

no test coverage detected