Skip to content

Add ways scale framebuffer preserving aspect ratio#55

Open
geloescht wants to merge 4 commits into
asivery:masterfrom
geloescht:unsquish
Open

Add ways scale framebuffer preserving aspect ratio#55
geloescht wants to merge 4 commits into
asivery:masterfrom
geloescht:unsquish

Conversation

@geloescht

Copy link
Copy Markdown
Contributor

This PR adds the fillMode property to the FBController component. It works similar to the property of the same name in the standard QTQuick Image component, but does not support tiling.
It also adds the framebufferSize property, allowing QML to know the width and height of the allocated frambuffer.

One open question is, whether the allowScaling property and its behaviour needs to be preserved for backwards compatibility reasons, or if fillMode: FBController.Pad is a good enough replacement. Right now it is a bit of a mix.

PS: geloescht:micropaint has an additional example that I used to help with the development of this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant