Expose Row Index in PixelRowOperation delegate #2055
Unanswered
PeteMichaud
asked this question in
Ideas
Replies: 2 comments 1 reply
-
Sounds reasonable to me, are you interested creating a PR? |
Beta Was this translation helpful? Give feedback.
1 reply
-
As you've discovered there's an overload that passes the current position as a We won't be adding additional overloads as to do so actually involves a lot of work with no added value. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been working through Joe's answer to this question: https://stackoverflow.com/questions/71388492/right-way-to-parallelize-pixel-access-across-multiple-images-using-imagesharp/71388733#71388733
I am trying to take his recommendation seriously not to used the
Advanced
stuff if possible, but I really do need parallel processing as the images I'm processing regularly push dimensions in the range of 25-50k width*height, so I've been looking into the Vector4 api he mentioned, which is given here as an example:I can't use this because my calculations absolutely require the current y/rowIndex coordinate. I looked here and found that one version of the delegate takes a
T value
arg, but as far as I can tell, that can't get me the index (maybe I'm wrong here?)My suggestion is simply to provide an overload that has an index like so:
I assume it doesn't make sense to attach an
index
type property to the rowSpan
object itself, but that's a different possibility if the Span is less generic than I'm assuming it is.Beta Was this translation helpful? Give feedback.
All reactions