dansiegel / Mobile.BuildTools

The Mobile.BuildTools makes it easier to develop code bases in a clean, consistent, secure, and configurable way. Determine at Build which environment your app needs to run on, and what Client Secrets it should have. Plus many more amazing features!
http://mobilebuildtools.com
MIT License
228 stars 29 forks source link

Image padding corrections #249

Closed bijington closed 3 years ago

bijington commented 3 years ago
bijington commented 3 years ago

Result in this beauty being generated using the following:

var image = new OutputImage
{
    Height = 0,
    Width = 0,
    InputFile = Path.Combine(TestConstants.ImageDirectory, "logo.svg"),
    RequiresBackgroundColor = false,
    Scale = 1.0,
    ShouldBeVisible = true,
    Watermark = null,
    BackgroundColor = "Red",
    PaddingColor = "Yellow",
    PaddingFactor = 1.5
};

image