I ran into an issue where I wanted to calculate a histogram of only a part of a CanvasImage, but it looks like the SourceRectangle is not taken into account. If I set it to something different than the rectangle returned by GetBounds the results look always the same. Is this expected behaviour?
I the meantime I will render the parts of interest to a separate rendertarget so their histograms can be calculated separately.
I ran into an issue where I wanted to calculate a histogram of only a part of a CanvasImage, but it looks like the SourceRectangle is not taken into account. If I set it to something different than the rectangle returned by GetBounds the results look always the same. Is this expected behaviour?
I the meantime I will render the parts of interest to a separate rendertarget so their histograms can be calculated separately.