Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing the resolution of headless rendering #16057

Open
Rosentti opened this issue Jun 18, 2024 · 0 comments
Open

Changing the resolution of headless rendering #16057

Rosentti opened this issue Jun 18, 2024 · 0 comments

Comments

@Rosentti
Copy link
Contributor

Is your feature request related to a problem? Please describe.

Cannot change the resolution that Avalonia renders headlessly at. I want a 1920x1080 image, but the headless backend only gives 1024x768.

Describe the solution you'd like

A way to set the resolution of headless rendering and change it at runtime whenever.
I guess ClientSize could be made writable or an extension method could be written.

Describe alternatives you've considered

Scaling up the low-res image.

Additional context

Setting the Width and Height does not seem to change the ClientSize.

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

No branches or pull requests

2 participants