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

Add width and height options to pixbuf.decode_to_image_surface #98

Merged
merged 2 commits into from
May 4, 2017

Conversation

frostidaho
Copy link
Contributor

This patch lets you optionally give a width and height to
pixbuf.decode_to_image_surface. This is useful for loading scalable
graphics.

The graphic shown below is a test using this patch. A small svg image
was loaded and scaled to be 10x its size. The patched version can do this by specifying this new width and height to pixbuf.decode_to_image_surface, while the orignal version needs to be scaled using cairo operations.
out2

@liZe
Copy link
Member

liZe commented May 4, 2017

Thank you!

@liZe liZe merged commit 9cba2e6 into Kozea:master May 4, 2017
@frostidaho
Copy link
Contributor Author

you're welcome, and thank you for the quick response :)

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