MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / updateImage

Method updateImage

game/ui/debugtools/imagepreview.cpp:67–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65bool ImagePreview::isTransition() { return false; }
66
67void ImagePreview::updateImage()
68{
69 auto image = fw().data->loadImage(imageFilename->getText());
70 imageView->Size = image->size;
71 imageView->setImage(image);
72 imageView->align(HorizontalAlignment::Centre, VerticalAlignment::Centre);
73}
74
75}; // namespace OpenApoc

Callers

nothing calls this directly

Calls 4

alignMethod · 0.80
loadImageMethod · 0.45
getTextMethod · 0.45
setImageMethod · 0.45

Tested by

no test coverage detected