//
// Copyright (c) James Jackson-South and contributors.
// Licensed under the Apache License, Version 2.0.
//
namespace ImageProcessorCore
{
using Processors;
///
/// Extension methods for the type.
///
public static partial class ImageExtensions
{
///
/// Flips an image by the given instructions.
///
/// The pixel format.
/// The packed format. uint, long, float.
/// The image to rotate, flip, or both.
/// The to perform the flip.
/// The
public static Image Flip(this Image source, FlipType flipType)
where TColor : IPackedVector
where TPacked : struct
{
FlipProcessor processor = new FlipProcessor(flipType);
return source.Process(source.Width, source.Height, source.Bounds, source.Bounds, processor);
}
}
}