Skip to content

ComputeHistogram does not seem to take into account the SourceRectangle. #487

@rolandsmeenk

Description

@rolandsmeenk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions