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

Feature request: stride parameter in push methods. #10

Open
erikcorry opened this issue Sep 12, 2011 · 0 comments
Open

Feature request: stride parameter in push methods. #10

erikcorry opened this issue Sep 12, 2011 · 0 comments

Comments

@erikcorry
Copy link

At the moment the push routines take just 'w' which is used both as the width of the image and it is multiplied by 4 to give the distance in bytes between the adjacent lines in the input.
If you separate out those two things then I can push a small rectangle from a buffer into a PNG.

The legacy/simple call push(buf, x, y, w, h) can be implemented as pushRectangle(buf, x, y, w*4, w, h)

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

No branches or pull requests

1 participant