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

Added equal padding to all sides when saving to bitmap #253

Merged
merged 1 commit into from
Feb 10, 2020

Conversation

sskodje
Copy link
Contributor

@sskodje sskodje commented Feb 9, 2020

The RenderToBitmap(double x, double y) method only adds padding to the left and top side of the bitmap. This fix adds padding to bottom and right as well. Perhaps there should be a Thickness as input instead though? It would make more sense but is a breaking change.

@ForNeVeR
Copy link
Owner

Thank you! Yes, this change makes sense.

I would be a bit sceptical about changing that to Thickness since this is a WPF-specific type, and we're trying to be as WPF-agnostic as possible now, because we want to support both WPF and Avalonia in future.

At least let's try to not add WPF dependencies to our public API without very good reasons.

@ForNeVeR ForNeVeR self-assigned this Feb 10, 2020
@ForNeVeR ForNeVeR merged commit 464c004 into ForNeVeR:master Feb 10, 2020
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.

2 participants