Skip to content

Try using IronSoftware.Drawing.AnyBitmap[] instead of Microsft System.Drawing.Bitmap[] but RotateFlip options is missing. #42

@busratmaca

Description

@busratmaca

We have implemented such a solution, any suggestion on this is welcome

public static class BitmapExtensions
    {
        public static void RotateFlip(ref AnyBitmap bitmap, float degree = 0)
        {
            if (degree <= 0 || degree >= 360)
                return;

            SixLabors.ImageSharp.Image image = (SixLabors.ImageSharp.Image)bitmap;
            image.Mutate(x => x.Rotate(degree));

            bitmap = image;
        }
    }

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions