¥Þ¥·¥ó¸ì¥²¡¼¥à¥°¥é¥Õ¥£¥Ã¥¯¥¹¤ÈƱÍͤΥǡ¼¥¿¤Ë¥³¥ó¥Ð¡¼¥È¤¹¤ë¥½¥Õ¥È¤Ç¤¹¡£
ºîÀ®´Ä¶¤ÏVC++2008¤ÈDX¥é¥¤¥Ö¥é¥ê¡£
16¿§¥Ç¡¼¥¿¤Î¾ì¹ç¤Ï¥×¥ì¡¼¥ó0Á´Éô¡¢1,2,3¤Î½ç¤ËVRAM¥Ç¡¼¥¿¤ÈƱ¤¸·Á¼°¤Çʤ٤Ƥ¤¤Þ¤¹¡£
17¿§¥Ç¡¼¥¿¤Î¾ì¹ç¡¢¿§ÈÖ¹æ16¤ò¥Ì¥¤È¤·¡¢¿§ÈÖ¹æ0¤Ë¤·¤Æ¤«¤é¥Ì¥¢ª0,1,2,3¤Î½ç¤Ëʤ٤Ƥޤ¹¡£
¼êÈ´¤¤ò¤·¤Æbmp¤òľ¤Ë²òÀϤ·¤Æ¤¤¤Ê¤¤¤Î¤Ç¡¢¼«ºî¤·¤¿Êý¤¬·Ú¤¯¤Ê¤Ã¤ÆÎɤ¤¤È¤Ï»×¤¤¤Þ¤¹¤¬¡£
¤Þ¤¿¡¢¥Ñ¥ì¥Ã¥ÈÃê½Ð¥½¥Õ¥È¤âƱº¤·¤Æ¤¤¤Þ¤¹¡£
1¥Ñ¥ì¥Ã¥È¤¢¤¿¤ê1word¤Ç¡¢¥À¥ß¡¼0¡¢0¤«¤éF¤Î¿§¥Ç¡¼¥¿¡ß3¤Ç¹½À®¤·¤Æ¤¤¤Þ¤¹¡£
0BRG¤Î½ç¤Ç³ÊǼ¤Î¤Ï¤º¤Ç¤¹¡£
IO¤Î¾ðÊó¤Ï¥Í¥Ã¥È¤Ë¤âÍî¤Á¤Æ¤ë¤È»×¤¦¤Î¤Çά¤·¤Þ¤¹¤¬¡¢°ÊÁ°¾å¤²¤¿EGCɽ¼¨¤Î°ã¤¤¥µ¥ó¥×¥ë¤Ë¤â¥Þ¥¯¥í¤òºÜ¤»¤Æ¤¤¤Þ¤¹¡£
¤½¤ì¤Î°ìÉôʬ¤òproc¤Ë¤·¤Æloop¤Ç¸Æ¤Ó½Ð¤·¤Æ¥Ñ¥ì¥Ã¥ÈÀßÄ꤬»ä¤ÎÄêÀФǤ¹¤¬¡¢¤½¤ÎÊդϹ¥¤ß¤Îʬ¤«¤ì¤ë½ê¤Ç¤·¤ç¤¦¡£
ºîÀ®´Ä¶¤ÏVC++2008¤ÈDX¥é¥¤¥Ö¥é¥ê¡£
16¿§¥Ç¡¼¥¿¤Î¾ì¹ç¤Ï¥×¥ì¡¼¥ó0Á´Éô¡¢1,2,3¤Î½ç¤ËVRAM¥Ç¡¼¥¿¤ÈƱ¤¸·Á¼°¤Çʤ٤Ƥ¤¤Þ¤¹¡£
17¿§¥Ç¡¼¥¿¤Î¾ì¹ç¡¢¿§ÈÖ¹æ16¤ò¥Ì¥¤È¤·¡¢¿§ÈÖ¹æ0¤Ë¤·¤Æ¤«¤é¥Ì¥¢ª0,1,2,3¤Î½ç¤Ëʤ٤Ƥޤ¹¡£
¼êÈ´¤¤ò¤·¤Æbmp¤òľ¤Ë²òÀϤ·¤Æ¤¤¤Ê¤¤¤Î¤Ç¡¢¼«ºî¤·¤¿Êý¤¬·Ú¤¯¤Ê¤Ã¤ÆÎɤ¤¤È¤Ï»×¤¤¤Þ¤¹¤¬¡£
¤Þ¤¿¡¢¥Ñ¥ì¥Ã¥ÈÃê½Ð¥½¥Õ¥È¤âƱº¤·¤Æ¤¤¤Þ¤¹¡£
1¥Ñ¥ì¥Ã¥È¤¢¤¿¤ê1word¤Ç¡¢¥À¥ß¡¼0¡¢0¤«¤éF¤Î¿§¥Ç¡¼¥¿¡ß3¤Ç¹½À®¤·¤Æ¤¤¤Þ¤¹¡£
0BRG¤Î½ç¤Ç³ÊǼ¤Î¤Ï¤º¤Ç¤¹¡£
IO¤Î¾ðÊó¤Ï¥Í¥Ã¥È¤Ë¤âÍî¤Á¤Æ¤ë¤È»×¤¦¤Î¤Çά¤·¤Þ¤¹¤¬¡¢°ÊÁ°¾å¤²¤¿EGCɽ¼¨¤Î°ã¤¤¥µ¥ó¥×¥ë¤Ë¤â¥Þ¥¯¥í¤òºÜ¤»¤Æ¤¤¤Þ¤¹¡£
¤½¤ì¤Î°ìÉôʬ¤òproc¤Ë¤·¤Æloop¤Ç¸Æ¤Ó½Ð¤·¤Æ¥Ñ¥ì¥Ã¥ÈÀßÄ꤬»ä¤ÎÄêÀФǤ¹¤¬¡¢¤½¤ÎÊդϹ¥¤ß¤Îʬ¤«¤ì¤ë½ê¤Ç¤·¤ç¤¦¡£
windows¾å¤Çedge¤Ê¤É¤ò»È¤Ã¤Æ¥Ñ¥ì¥Ã¥È²èÁü¥Ç¡¼¥¿¤òºîÀ®¤·¡¢¤½¤ì¤òÊÑ´¹¤·¤ÆPC98¾å¤Ç»È¤¤¤ä¤¹¤¯¤¹¤ë¤¿¤á¤Î¥Ä¡¼¥ë¤Ç¤¹¡£
¥Ñ¥ì¥Ã¥ÈÀßÄê¤äÂç²èÌ̥ǡ¼¥¿ºîÀ®¡¢È´¤¥Ç¡¼¥¿ºîÀ®¤¬98¼Âµ¡¤ÇÀìÍѥġ¼¥ë¤ò»È¤Ã¤Æºî¤ë¤è¤ê¤â³Ú¤À¤È»×¤¤¤Þ¤¹¡£
ÅöÁ³¥Ç¡¼¥¿¤òÍøÍѤ¹¤ë¤Ë¤ÏÊ̤ËPC98ÍÑ¤Î¥×¥í¥°¥é¥à¤òºî¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
¤³¤ÎwikiÆâ¤Ç¤Ê¤é¡¢¼Âµ¡¤È¥¨¥ß¥å¤Î°ã¤¤¤Î½ê¤Î¥µ¥ó¥×¥ë¤ò»²¹Í¤Ë¤·¤Æ²¼¤µ¤¤¡£
¥Ñ¥ì¥Ã¥ÈÀßÄê¤äÂç²èÌ̥ǡ¼¥¿ºîÀ®¡¢È´¤¥Ç¡¼¥¿ºîÀ®¤¬98¼Âµ¡¤ÇÀìÍѥġ¼¥ë¤ò»È¤Ã¤Æºî¤ë¤è¤ê¤â³Ú¤À¤È»×¤¤¤Þ¤¹¡£
ÅöÁ³¥Ç¡¼¥¿¤òÍøÍѤ¹¤ë¤Ë¤ÏÊ̤ËPC98ÍÑ¤Î¥×¥í¥°¥é¥à¤òºî¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
¤³¤ÎwikiÆâ¤Ç¤Ê¤é¡¢¼Âµ¡¤È¥¨¥ß¥å¤Î°ã¤¤¤Î½ê¤Î¥µ¥ó¥×¥ë¤ò»²¹Í¤Ë¤·¤Æ²¼¤µ¤¤¡£
Äɵ¡£xʬ³ä¿ôÀßÄê¤ò²£Éý¤Î16ʬ¤Î1¤Ë¤¹¤ë¤È¡¢²£¤«¤é¤Î¥¹¥é¥¤¥É¥¤¥óɽ¼¨¤ËÊØÍø¤Ê16bitÉý¤Ç¤Î½ÄʤӤǥǡ¼¥¿¤¬¤Ä¤¯¤é¤ì¤Þ¤¹¡£ÅöÁ³¤Ç¤¹¤¬¡¢x,yʬ³ä¿ô¤òÀßÄꤷ¤Æ°ì¤Ä¤Î¥Ñ¥ì¥Ã¥È¤Î²èÁü¥Ç¡¼¥¿¤òʬ³ä¤¹¤ë¤Î¤â²Äǽ¤Ç¤¹¡£¤³¤ì¤ÏƱ°ì²èÌÌÆ⥥ã¥éɽ¼¨¤Ê¤É¤Ç͸ú¡£
¤Þ¤º256¿§¥Ñ¥ì¥Ã¥È¤Î²èÁü¤òÆɤ߹þ¤Þ¤»¤Æ¤¯¤À¤µ¤¤¡£
¼¡¤ËÊÑ´¹¤¹¤ë¿§¿ô¤òÆþÎϤ·¤Æ¥ê¥¿¡¼¥ó¥¡¼¤ò²¡¤¹¤È¡¢Êݸ¥À¥¤¥¢¥í¥°¤¬³«¤¡¢0¤«¤én-1¤ÎÈϰϤΥѥì¥Ã¥È¥Õ¥¡¥¤¥ë¤¬ºîÀ®¤µ¤ì¤Þ¤¹¡£
¿§¿ô̤ÆþÎϤξì¹ç¤Ï16¿§¤Ë¤Ê¤ê¤Þ¤¹¡£
256¤è¤êÂ礤¤¿ô»ú¤Î½èÍý¤ò¥Ð¥°¼è¤ê¤·¤¿¤«¤Îµ²±¤¬Ìµ¤¤¤Î¤Ç¡¢Ç°¤Î¤¿¤áÆþ¤ì¤Ê¤¤¤Ç²¼¤µ¤¤¡£
¥Ñ¥ì¥Ã¥È¤ò»²¾È¤¹¤ë¤Î¤Ç²èÁü¼«ÂΤϿ¿¤Ã¹õ¤Ç¤âOK¤Ç¤¹¡£
¼¡¤ËÊÑ´¹¤¹¤ë¿§¿ô¤òÆþÎϤ·¤Æ¥ê¥¿¡¼¥ó¥¡¼¤ò²¡¤¹¤È¡¢Êݸ¥À¥¤¥¢¥í¥°¤¬³«¤¡¢0¤«¤én-1¤ÎÈϰϤΥѥì¥Ã¥È¥Õ¥¡¥¤¥ë¤¬ºîÀ®¤µ¤ì¤Þ¤¹¡£
¿§¿ô̤ÆþÎϤξì¹ç¤Ï16¿§¤Ë¤Ê¤ê¤Þ¤¹¡£
256¤è¤êÂ礤¤¿ô»ú¤Î½èÍý¤ò¥Ð¥°¼è¤ê¤·¤¿¤«¤Îµ²±¤¬Ìµ¤¤¤Î¤Ç¡¢Ç°¤Î¤¿¤áÆþ¤ì¤Ê¤¤¤Ç²¼¤µ¤¤¡£
¥Ñ¥ì¥Ã¥È¤ò»²¾È¤¹¤ë¤Î¤Ç²èÁü¼«ÂΤϿ¿¤Ã¹õ¤Ç¤âOK¤Ç¤¹¡£
16¿§²èÁü¡¢Ëô¤Ï17¿§²èÁü¤Ç¡¢x¥µ¥¤¥º¤¬8¤ÎÇÜ¿ô¤Ê¥Ç¡¼¥¿¤òÆɤ߹þ¤Þ¤»¤Þ¤·¤ç¤¦¡£
xʬ³ä¿ô¡¢yʬ³ä¿ô¤È¤Ï¡¢²èÁü¤ò¥¿¥¤¥ë¤Ê¤É¤ÎÉôʬËè¤ËÊݸ¤¹¤ë°Ù¤Îµ¡Ç½¤Ç¤¹¡£
ʬ³ä¿ô¤Ç²£¡¢½Ä¤ËÅùʬ¤µ¤ì¤Þ¤¹¤¬¡¢³ä¤Ã¤¿·ë²Ì¤Î¥É¥Ã¥È¤¬¤¬8¤ÎÇÜ¿ô¤Ç¤¢¤ëɬÍפ¬¤¢¤ê¤Þ¤¹(EGC¤ò»È¤¦¾ì¹ç¤Ë¤Ï16¤ÎÇÜ¿ô¤Ë¤·¤Æ¤¯¤À¤µ¤¤)¡£
¥Ç¥Õ¥©¡û¡û¤È¤¢¤ë¾ì¹ç¤Ï¡¢¥ê¥¿¡¼¥ó¥¡¼¤ä¿ô»ú°Ê³°¤Î¥¡¼¤Ç¥Ç¥Õ¥©¥ë¥È¤Î¿ô»ú¤È¤Ê¤ê¤Þ¤¹¡£
¾¤Ï¥Ñ¥ì¥Ã¥È¥Ä¡¼¥ë¤È¤Û¤ÜƱÍͤǤ·¤ç¤¦¡£
¸½ºß¸ø³«Ãæ¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç¤Ï½Ä²£¤½¤ì¤¾¤ì999pixel¤Î²èÁü¤Þ¤Ç°·¤¨¤Þ¤¹¡£9999pixel¤Þ¤Ç³ÈÄ¥¤·¤¿Êª¤òºîÀ®¤·¤¿¤Î¤Ç¡¢Àµ·îµÙ¤ßÃæ¤Ëº¹¤·Âؤ¨Í½Äê¤Ç¤¹
xʬ³ä¿ô¡¢yʬ³ä¿ô¤È¤Ï¡¢²èÁü¤ò¥¿¥¤¥ë¤Ê¤É¤ÎÉôʬËè¤ËÊݸ¤¹¤ë°Ù¤Îµ¡Ç½¤Ç¤¹¡£
ʬ³ä¿ô¤Ç²£¡¢½Ä¤ËÅùʬ¤µ¤ì¤Þ¤¹¤¬¡¢³ä¤Ã¤¿·ë²Ì¤Î¥É¥Ã¥È¤¬¤¬8¤ÎÇÜ¿ô¤Ç¤¢¤ëɬÍפ¬¤¢¤ê¤Þ¤¹(EGC¤ò»È¤¦¾ì¹ç¤Ë¤Ï16¤ÎÇÜ¿ô¤Ë¤·¤Æ¤¯¤À¤µ¤¤)¡£
¥Ç¥Õ¥©¡û¡û¤È¤¢¤ë¾ì¹ç¤Ï¡¢¥ê¥¿¡¼¥ó¥¡¼¤ä¿ô»ú°Ê³°¤Î¥¡¼¤Ç¥Ç¥Õ¥©¥ë¥È¤Î¿ô»ú¤È¤Ê¤ê¤Þ¤¹¡£
¾¤Ï¥Ñ¥ì¥Ã¥È¥Ä¡¼¥ë¤È¤Û¤ÜƱÍͤǤ·¤ç¤¦¡£
¸½ºß¸ø³«Ãæ¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç¤Ï½Ä²£¤½¤ì¤¾¤ì999pixel¤Î²èÁü¤Þ¤Ç°·¤¨¤Þ¤¹¡£9999pixel¤Þ¤Ç³ÈÄ¥¤·¤¿Êª¤òºîÀ®¤·¤¿¤Î¤Ç¡¢Àµ·îµÙ¤ßÃæ¤Ëº¹¤·Âؤ¨Í½Äê¤Ç¤¹
ºÇ¿·¥³¥á¥ó¥È
2023-03-05
2020-09-15