Skip to content

Allow passing custom Configuration instances to processors #650

@antonfirsov

Description

@antonfirsov

Prerequisites

  • I have written a descriptive issue title
  • I have verified that I am running the latest version of ImageSharp
  • I have verified if the problem exist in both DEBUG and RELEASE mode
  • I have searched open and closed issues to ensure it has not already been reported

Problem

At the moment it's not possible to pass Configuration instances to image processors. We can't do this without changing the public API which means we need to act before RC1 is out.

Suggestion:

  • IImageProcessor<T>.Apply() needs a Configuration argument
  • IImageProcessingContext<TPixel> should hold a Configuration instead of MemoryAllocator
  • We need overloads for Mutate() and Clone() taking a Configuration

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions