Update resolution when setting image

This commit is contained in:
mike-000
2021-06-09 14:47:41 +01:00
committed by GitHub
parent 92a2b3e78b
commit 0b6a58353d

View File

@@ -136,6 +136,7 @@ class ImageWrapper extends ImageBase {
*/
setImage(image) {
this.image_ = image;
this.resolution = getHeight(this.extent) / this.image_.height;
}
/**