Skip to content

Change background color when ResizeMode.Pad #466

Closed
@OscarCanek

Description

@OscarCanek

Description

It's possible to change the background color when resizing image with mode Pad. Now is always black, but I would like to change it to other colors.

Steps to Reproduce

newImage.Mutate(x => x
                     .Resize(new SixLabors.ImageSharp.Processing.ResizeOptions
                     {
                         Size = new SixLabors.Primitives.Size(newWidth, newHieght),
                         Mode = SixLabors.ImageSharp.Processing.ResizeMode.Pad                         
                     })
                     );
  • ImageSharp version: 1.0.0-beta0002
  • Environment (Operating system, version and so on): Windows/Linux
  • .NET Framework version: .net core 2.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions