public static void FilpHorizontalAndSave(string filePath, VrcMetaData metaData) { using var image = FlipHorizontal(LoadImage(filePath)); var buffer = Bitmap2Bytes(image); if (!(metaData is null)) { buffer = VrcMetaDataWriter.Write(buffer, metaData); } SaveImage(buffer, filePath); }
public static void Rotate180AndSave(string filePath, VrcMetaData metaData) { using var image = Rotate180(LoadImage(filePath)); var buffer = Bitmap2Bytes(image); if (!(metaData is null)) { buffer = VrcMetaDataWriter.Write(buffer, metaData); } SaveImage(buffer, filePath); }