コード例 #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);
        }