WriteableBitmapEx ์†Œ๊ฐœ

WriteableBitmapEx ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋Š” WriteableBitmap์— ๋Œ€ํ•œ ํ™•์žฅ ๋ฉ”์„œ๋“œ ๋ชจ์Œ์ž…๋‹ˆ๋‹ค. ์“ฐ๊ธฐ ๋น„ํŠธ๋งต ํด๋ž˜์Šค๋Š” WPF, ์œˆ๋„์šฐ 10 UWP, ์œˆ๋„์šฐ ํฐ, ์œˆRT ์œˆ๋„์šฐ ์Šคํ† ์–ด XAML ๋ฐ ์‹ค๋ฒ„ ๋ผ์ดํŠธ๋ฅผ ํฌํ•จํ•œ ๋ชจ๋“  XAML์—์„œ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. .NET ํ”„๋ ˆ์ž„์›Œํฌ ๋ฐ .NET Core 3์„ ์ง€์›ํ•˜๋ฉฐ Windows Embedded๋กœ ํฌํŒ…๋˜์—ˆ์Šต๋‹ˆ๋‹ค. WriteableBitmapEx๋Š” ๋น„ํŠธ๋งต์„ ์ง์ ‘ ์กฐ์ž‘ํ•  ์ˆ˜ ์žˆ์œผ๋ฉฐ ์ด๋ฏธ์ง€ ์กฐ์ž‘์— ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์œผ๋ฉฐ ๋น„ํŠธ๋งต ๋“ฑ์— ์ง์ ‘ ๊ทธ๋ ค์„œ ๋น ๋ฅธ ์ ˆ์ฐจ ์  ์ด๋ฏธ์ง€๋ฅผ ์ƒ์„ฑํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

WriteableBitmap API๋Š” ๋งค์šฐ ๋ฏธ๋‹ˆ๋ฉ€ํ•˜๋ฉฐ ์ด๋Ÿฌํ•œ ์ž‘์—…์— ๋Œ€ํ•œ ์›์‹œ ํ”ฝ์…€ ๋ฐฐ์—ด๋งŒ ์žˆ์Šต๋‹ˆ๋‹ค. WriteableBitmapEx ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋Š” ๋‚ด์žฅ๋œ ๋ฐฉ๋ฒ•๊ณผ ๊ฐ™์ด ์‚ฌ์šฉํ•˜๊ธฐ ์‰ฝ๊ณ  ๊ธฐ๋Šฅ๊ณผ ๊ฐ™์€ GDI+๋ฅผ ์ œ๊ณตํ•˜๋Š” ํ™•์žฅ ๋ฐฉ๋ฒ•์„ ํ†ตํ•ด ์ด๋ฅผ ๋ณด์ •ํ•˜๋ ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค. ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋Š” WriteableBitmap ํด๋ž˜์Šค๋ฅผ ๊ธฐ๋ณธ ๋ฐ ๋น ๋ฅธ(2D ๋„๋ฉด) ๊ธฐ๋Šฅ, ๋ณ€ํ™˜ ๋ฐฉ๋ฒ• ๋ฐ ํ•จ์ˆ˜๋ฅผ ๊ฒฐํ•ฉํ•˜์—ฌ (blit) WriteableBitmaps๋ฅผ ๊ฒฐํ•ฉํ•ฉ๋‹ˆ๋‹ค.

ํ™•์žฅ ๋ฉ”์„œ๋“œ๋Š” ๋ถ€๋ถ„ ํด๋ž˜์Šค ์ ‘๊ทผ ๋ฐฉ์‹์„ ์‚ฌ์šฉํ•˜์—ฌ ๋‹ค๋ฅธ C# ํŒŒ์ผ๋กœ ๊ทธ๋ฃนํ™”๋ฉ๋‹ˆ๋‹ค. ํŠน์ • ์†Œ์Šค ์ฝ”๋“œ ํŒŒ์ผ์„ ์ง์ ‘ ์‚ฌ์šฉํ•˜๊ฑฐ๋‚˜ ๋‚ด์žฅ๋œ ๋ฐ”์ด๋„ˆ๋ฆฌ๋ฅผ ํ†ตํ•ด ์ „์ฒด ๊ธฐ๋Šฅ์„ ์‚ฌ์šฉํ•˜์—ฌ ๋ช‡ ๊ฐ€์ง€ ๋ฐฉ๋ฒ•๋งŒ ํฌํ•จํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

reneschulte/WriteableBitmapEx: Collection of extension methods for the XAML WriteableBitmap (github.com)

์ข‹์•„์š” 3

์˜คโ€ฆ https://devblogs.microsoft.com/dotnet/net-core-image-processing/ ์—ฌ๊ธฐ ์—†๋Š” API๊ตฐ์š”. ์ด๊ฒƒ๋„ ์„ฑ๋Šฅ์ด ์ข‹๋‚˜์š”??

์ข‹์•„์š” 1

github์— ๊ฐ€๋ฉด ์ƒ˜ํ”Œ๋„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค. ๋น ๋ฅด๋„ค์š”.

์ข‹์•„์š” 2