Skip to content

Feature Request: replace Bound(src.Bounds) by Bound(src) #26

@celogeek

Description

@celogeek

Hi,

I want to create a CropMargin filter. This filter will look in the img, and remove the white line all around the image.
For this I need the source image to look for the pixel I want to remove.

If the Bounds method receive the src instead the src.Bounds, that would make a lot for filter possible.

For now I have to calculate the bound before I can create the filter Crop and apply it.

May be I can return the srcBound, and in the Draw I can draw the return the src.sub image. That may work, but the g.Bounds will return the wrong value.

Do you think it could be a possible evolution?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions