Искажение и сохранение изображения

This commit is contained in:
2024-11-18 02:07:14 +03:00
parent e6d636cff2
commit 5711244be4
2 changed files with 17 additions and 4 deletions

View File

@@ -27,5 +27,7 @@ main = do
Left err -> putStrLn $ "Ошибка при чтении изображения: " ++ err
Right dynImg -> do
let img = convertRGB8 dynImg
putStrLn $ "Ширина: " ++ show (imageWidth img)
putStrLn $ "Высота: " ++ show (imageHeight img)
let width = imageWidth img
let height = imageHeight img
let resultImage = generateImage (encodePixel 1 img encryptedTextBits) width height
saveBmpImage "tmp/david.bmp" (ImageRGB8 resultImage)