-
Notifications
You must be signed in to change notification settings - Fork 4
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
Compositing on image/solid color #6
Comments
When compositing on a solid color, we need to be able to generate a destination image that's bigger than the source. This is especially important for the width dimension, since there's no efficient way for the user to manually add columns to an image. Adding rows above/below is much easier; just allocate a bigger buffer, clear the area above/below, and offset the dest pointer. You could do something similar for columns using rowstride, but clearing vertical strips is fiddly and cache-inefficient. The over-color API should probably be similar to the over-image one; we need to specify dimensions and offset, allow for clipping and so on. The main difference would be that over-color should take a pointer to a single pixel representing the color. We could take this further and support the general case, where "solid color" would just be a tiled one-pixel image, but that's probably out of scope for now. |
Add the ability to composite the scaled output on an existing image buffer or a solid color. Allow origin outside the target image (i.e. negative top-left offsets) with clipping as appropriate and subpixel placement.
The text was updated successfully, but these errors were encountered: