-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
If an Image's width and height have been set, then we can presumably set the desiredMaxSize of the LoadedImageSurface when loading the resource.
Caveats:
- maxWidth and maxHeight take priority
- (max)Width and (max)Height have to be constants. If they're using a % and then resize the window to make it bigger, then the image wouldn't grow.
- Do both values (width and height) have to be set? I think that if only one of the values in the pair has been set, we can do this: StartLoadFromStream(stream, {width, 0}) and get what we want.