예제 #1
0
        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);
        }
예제 #2
0
        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);
        }