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 PaddedViews.filltype specifications on Colorants #126

Merged
merged 2 commits into from
Apr 8, 2020

Conversation

johnnychen94
Copy link
Member

@johnnychen94 johnnychen94 commented Mar 20, 2020

This ensures that fillvalue::Colorant is of the dominant role of eltype of PaddedView.

One consequence of this is transparent color is correctly filled even if img isn't of eltype ARGB:

PaddedView(ARGB(0, 0, 0, 0), img, indices)

This PR also reexports PaddedViews to introduce PaddedView and sym_paddedviews(JuliaArrays/PaddedViews.jl#23)

Ref: This is a rework of JuliaArrays/PaddedViews.jl#25 and co-operates JuliaArrays/PaddedViews.jl#26

This exports two new names: PaddedView and sym_paddedviews
This ensure that `fillvalue` is of dominant role of eltype of PaddedView.

One consequence of this is transparent color is correctly filled even if
`img` isn't of eltype `ARGB`:

`PaddedView(ARGB(0, 0, 0, 0), img, indices)`

This is a rework of JuliaArrays/PaddedViews.jl#25
and co-operates JuliaArrays/PaddedViews.jl#26
@johnnychen94 johnnychen94 changed the title Jc/paddedviews add PaddedViews.filltype specifications on Colorants Mar 20, 2020
@johnnychen94
Copy link
Member Author

johnnychen94 commented Apr 2, 2020

bump @timholy

plan to merge together with #127 and tag a release for it.

@johnnychen94 johnnychen94 reopened this Apr 2, 2020
@johnnychen94
Copy link
Member Author

johnnychen94 commented Apr 6, 2020

These two PRs (this and #127) for the imshow alternative are sleeping for many days. My personal usage experiences on this are pretty positive so I'm planning to merge it in days despite the lack of review.

@johnnychen94 johnnychen94 merged commit dabb1b4 into master Apr 8, 2020
@johnnychen94 johnnychen94 deleted the jc/paddedviews branch April 8, 2020 15:19
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.

1 participant