[MFC] Draw PNG

May 31, 2011/Jul 03, 2015

๋งค์ผ๋งค์ผ ๊ฐœ๋ฐœํ•˜๋Š” ์†Œ์Šค์ฝ”๋“œ๋ฅผ ์˜ฌ๋ฆฌ๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ์›๋ž˜๋Š” ํ”„๋กœ์ ํŠธ๊ฐ€ ๋๋‚˜๊ณ  ์˜ฌ๋ฆฌ๋ ค๊ณ  ํ–ˆ์œผ๋‚˜, ๊ทธ๋Ÿฌ๋‹ค ๋ณด๋‹ˆ ๊นŒ๋จน๋Š” ๊ฒฝ์šฐ๊ฐ€ ์žˆ์–ด์„œ ์ด๋ ‡๊ฒŒ ๋งค์ผ๋งค์ผ ์˜ฌ๋ฆฌ๋Š” ์†Œ์Šค์ฝ”๋“œ ์ž…๋‹ˆ๋‹ค. ์ œ๊ฐ€ ์“ด ์†Œ์Šค์ฝ”๋“œ์˜ ๋ฌธ์ œ ํ˜น์€ ๊ฐœ์„ ์ ์ด ์žˆ์œผ๋ฉด ์–ธ์ œ๋“ ์ง€ ๋Œ“๊ธ€ ๋‹ฌ์•„ ์ฃผ์„ธ์š”ย 





PNG๋ฅผ ์“ฐ๋Š” ์ด์œ ๋Š” ๋‹จ ํ•˜๋‚˜๋‹ค. ๋ฐฐ๊ฒฝ์˜ ํˆฌ๋ช…์ฒ˜๋ฆฌ ๋•Œ๋ฌธ. ํ•˜์ง€๋งŒ DC๋กœ ๊ทธ๋ฆด๊ฒฝ์šฐ์—๋Š” MFC์˜ ๋ฆฌ์†Œ์Šค์— ๋“ฑ๋กํ•ด์„œ ๊ทธ๋Ÿฌ์•ผ ํ•˜๋Š” ๋ถˆํŽธํ•จ์ด ์žˆ๊ณ , PNG ๋ฆฌ์†Œ์Šค ๋“ฑ๋ก๋„ ๋ฒˆ๊ฑฐ๋กญ๋‹ค. ๊ฐ€์žฅ ํฐ ๋ฌธ์ œ๋Š” ๋ฆฌ์†Œ์Šค๋ฅผ ๋งŽ์ด ์“ฐ๋ฉด ํŒ€ ์ž‘์—…๊ฐ„์˜ SVN Conflict๊ฐ€ ์ž์ฃผ ๋‚ ์ˆ˜ ์žˆ๊ธฐ์—. ์•„๋ž˜์™€ ๊ฐ™์ด png์˜ ๊ฒฝ์šฐ ํŒŒ์ผ๋กœ ๋ณด์—ฌ์ฃผ๋Š” ๊ฒƒ๋„ ๋‚˜์˜์ง€ ์•Š๋‹ค.ย 




The reason of using PNG image file is one. becauseof Transparent. But you draw any grpahic using DC, you have to register Resource of MFC. It is very inconvenient. The important problem of using resource is that you may experience SVN Confilict in team works. so it is not bad that load png file:
ย 


#dev  #draw png  #mfc  #png  #png mfc  #๋ฆฌ์†Œ์Šค  #๋น„ํŠธ๋งต