{"id":261,"date":"2005-12-29T23:48:21","date_gmt":"2005-12-29T14:48:21","guid":{"rendered":"http:\/\/leavebehind.iobb.net\/wordpress\/?p=261"},"modified":"2005-12-29T23:48:21","modified_gmt":"2005-12-29T14:48:21","slug":"v4-gdirenderer","status":"publish","type":"post","link":"http:\/\/leavebehind.mydns.jp\/wordpress\/2005\/12\/29\/v4-gdirenderer\/","title":{"rendered":"[v4-\u305d\u306e5]\u7c21\u5358\u30b0\u30e9\u30d5\u30a3\u30c3\u30af"},"content":{"rendered":"<p>\u4eca\u56de\u306fRenderer(GDI)\u30ce\u30fc\u30c9\u3092\u4f7f\u3063\u305f\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u63cf\u753b\u306b\u3064\u3044\u3066\u3002<br \/>\n<strong>GDI<\/strong>\u3063\u3066\u306e\u306fGraphic Device Interface\u3068\u3044\u3063\u3066\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u3084\u30d7\u30ea\u30f3\u30bf\u306e\u4ef2\u4ecb\u5f79\u307f\u305f\u3044\u306a\u3084\u3064\u3002\u3088\u304f\u77e5\u308b\u5fc5\u8981\u306f\u306a\u3044\u306e\u3067v4\u3067\u306f<strong>\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u63cf\u753b(\u7c21\u6613\u7248)<\/strong>\u3060\u3068\u601d\u3063\u3066\u304a\u304f\u30b3\u30c8\u306b\u3059\u308b\u3002\u3082\u3061\u308d\u3093DirectX\u3092\u4f7f\u7528\u3057\u3066\u306e3D\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u63cf\u753b\u3092\u3059\u308b\u30ce\u30fc\u30c9\u3082\u3042\u308b\u304c\u305d\u308c\u306f\u5f8c\u56de\u3057\u3002<\/p>\n<p>\u3069\u308c\u4f4d\u7c21\u6613\u7248\u304b\u3063\u3061\u3085\u30fc\u3068\u30022D\u306b\u753b\u9762\u306b\u7dda\u3092\u5f15\u3044\u305f\u308a\u3001\u70b9\u3092\u6253\u3063\u305f\u308a\u3001\u5186\u3092\u63cf\u3044\u305f\u308a\u3063\u3066\u611f\u3058\u304b\u306a\u3002<br \/>\n\u3058\u3083\u3042\u307e\u305a\u3001\u65b0\u898f\u30d1\u30c3\u30c1\u3092\u958b\u3044\u3066<strong>Renderer(GDI)<\/strong>\u30ce\u30fc\u30c9\u3092\u4e00\u3064\u4f5c\u308b\u3002<br \/>\n<img decoding=\"async\" src=\"http:\/\/leavebehind.iobb.net\/wordpress\/wp-images\/v4renderergdinode.jpg\" alt=\"Render(GDI)\u30ce\u30fc\u30c9\" \/><br \/>\n\u30d1\u30c3\u30c1\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u9577\u301c\u3044\u30ce\u30fc\u30c9\u304c\u4e00\u3064\u51fa\u6765\u308b\u3002\u305d\u3057\u3066\u80cc\u666f\u304c\u9ed2\u3044\u30a6\u30a3\u30f3\u30c9\u30a6\u304c\u958b\u304b\u308c\u308b\u306d(\u30b5\u30a4\u30ba\u306f\u3068\u308a\u3042\u3048\u305a\u3053\u306e\u307e\u307e\u7f6e\u3044\u3066\u304a\u304f)\u3002\u3053\u306e\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u56f3\u5f62\u3092\u63cf\u753b\u3057\u3066\u884c\u304f\u3002\u3069\u3046\u3084\u3063\u3066\u63cf\u753b\u3059\u308b\u3093\u3060\u3063\u3066\u3044\u3046\u3068\u3001Render\u30ce\u30fc\u30c9\u306e\u4e00\u756a\u5de6\u7aef\u306eInputPin\u3001Layers\u3063\u3066\u540d\u524d\u306e\u30d4\u30f3\u306b\u56f3\u5f62\u60c5\u5831\u3092\u9001\u3063\u3066\u3084\u3089\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3002<\/p>\n<p>\u56f3\u5f62\u60c5\u5831\u3092\u9001\u3063\u3066\u307f\u3088\u3046\u3002Circle(GDI)\u3063\u3066\u30ce\u30fc\u30c9\u3092\u4e00\u3064\u4f5c\u308b\u3001\u540d\u524d\u901a\u308a\u5186\u3092\u63cf\u304f\u30ce\u30fc\u30c9\u3060\u3002\u3053\u306e\u30ce\u30fc\u30c9\u306eOutputPin\u306eLayer\u3092Render\u30ce\u30fc\u30c9\u306eInputPin\u306eLayer\u306b\u7e4b\u3050\u3068\u3001\u5186\u306e\u51fa\u6765\u4e0a\u304c\u308a\u3002<br \/>\n<img decoding=\"async\" class=\"left\" src=\"http:\/\/leavebehind.iobb.net\/wordpress\/wp-images\/v4drawcircle.jpg\" alt=\"\u5186\u3092\u63cf\u304f\" \/><br \/>\n\u305f\u3060\u3053\u308c\u30d2\u30b7\u30e3\u30b2\u3061\u3083\u3063\u3066\u308b\u306d\u3002\u3082\u3061\u308d\u3093\u6955\u5186\u3092\u63cf\u3044\u305f\u306e\u3067\u306f\u306a\u3044\u3002\u8a66\u3057\u306bCircle\u30ce\u30fc\u30c9\u306e3\u3064\u306eOutputPin\u3092\u30de\u30a6\u30b9\u30aa\u30fc\u30d0\u30fc\u3055\u305b\u308b\u3068\u8a2d\u5b9a\u53ef\u80fd\u9805\u76ee\u304c\u3067\u308b\u3001\u5de6\u304b\u3089X,Y,R\u3067\u3064\u307e\u308ax,y\u5ea7\u6a19\u3067\u306e\u4f4d\u7f6e\u3068\u534a\u5f84R\u304c\u8a2d\u5b9a\u3067\u304d\u308b\u3060\u3051\u3067\u6955\u5186\u306a\u8a33\u3067\u306f\u306a\u3044\u3002<\/p>\n<p>\u3058\u3083\u3042\u4f55\u6545\u30d2\u30b7\u30e3\u30b2\u3066\u308b?\u5b9f\u306f\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u304c\u63cf\u753b\u3055\u308c\u3066\u3044\u308b\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u5ea7\u6a19\u306e\u53d6\u308a\u6271\u3044\u306b\u3061\u3087\u3063\u3068\u3057\u305f\u6c7a\u307e\u308a\u4e8b\u304c\u3042\u308b\u305d\u308c\u306f\u3001<br \/>\n<strong>\u539f\u70b9\u306f\u63cf\u753b\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u4e2d\u5fc3\u306b\u3042\u308a\u3001\u30a6\u30a3\u30f3\u30c9\u30a6\u306ex,y\u8ef8\u4e21\u65b9\u3068\u3082-1.0\u304b\u30891.0\u306e\u9593\u3067\u8868\u8a18\u3059\u308b<\/strong>\u3063\u3066\u3053\u3068\u3001\u666e\u901a\u306a\u3089\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u5de6\u4e0a\u7aef\u3092\u539f\u70b9\u306bx\u65b9\u5411(\u753b\u9762\u5de6\u65b9\u5411)\u3078\u4f55pixel\u3001y\u65b9\u5411(\u753b\u9762\u53f3\u65b9\u5411)\u3078\u4f55pixel\u3063\u3066\u3044\u3046\u3051\u3069\u3002<br \/>\n<img decoding=\"async\" src=\"http:\/\/leavebehind.iobb.net\/wordpress\/wp-images\/v4gdiwindow.jpg\" alt=\"\u521d\u671f\u72b6\u614b\u306e\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u5186\u3092\u63cf\u3044\u305f\" \/><br \/>\n\u306a\u306e\u3067\u3067\u304d\u305f\u3066\u306e\u63cf\u753b\u30a6\u30a3\u30f3\u30c9\u30a6\u306f400x300pixel\u306e4:3\u306e\u5927\u304d\u3055\u3001\u306a\u306e\u3067\u7e26\u306b\u3072\u3057\u3083\u3052\u305f\u898b\u3048\u65b9\u306b\u306a\u308b\u3002\u3082\u3061\u308d\u3093\u3001\u30a6\u30a3\u30f3\u30c9\u30a6\u30b5\u30a4\u30ba\u3092\u6b63\u65b9\u5f62\u306b\u3059\u308c\u3070\u89e3\u6d88\u3067\u304d\u308b\u304c\u3001\u305d\u308c\u3060\u3051\u3062\u3083\u3041\u56f0\u308b\u3002<br \/>\n<img decoding=\"async\" class=\"right\" src=\"http:\/\/leavebehind.iobb.net\/wordpress\/wp-images\/v4modifyScreenAspect.jpg\" alt=\"\u7e26\u6a2a\u6bd4\u306e\u8abf\u6574\" \/><br \/>\n\u3067\u3069\u3046\u3059\u308b\u304b\u3002Renderer(GDI)\u30ce\u30fc\u30c9\u306e\u4e00\u756a\u53f3\u306eInputPin&#8217;Viewport matrix transformation&#8217;\u3063\u3066\u30ce\u30fc\u30c9\u306b\u30b9\u30af\u30ea\u2212\u30f3\u30a2\u30b9\u30da\u30af\u30c8\u3092\u8abf\u6574\u3059\u308b\u884c\u5217\u3092\u5165\u529b\u3057\u3066\u3084\u308b\u3002\u3061\u3087\u3063\u3068\u30e0\u30c5\u30a4\u3051\u3069\u3084\u308a\u65b9\u306f\u7c21\u5358\u3001<strong>AspectRatio(Transform)<\/strong>\u30ce\u30fc\u30c9\u3092\u3064\u304f\u308a\u305d\u306eOutputPin\u3092\u5148\u307b\u3069\u306eInputPin\u3078\u30b3\u30cd\u30af\u30c8\u3057\u3066\u3084\u308b\u3002\u3067\u3082\u305d\u308c\u3060\u3051\u3058\u3083\u5909\u308f\u3089\u306a\u3044\u306e\u3067AspectRatio\u30ce\u30fc\u30c9\u306eAspect Width\u3068Aspect Height\u306eInputPin\u3092\u305d\u308c\u305e\u308c3,4\u306b\u8a2d\u5b9a\u3057\u3066\u304a\u304f\u3002\u63cf\u753b\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u6bd4\u7387\u3092\u7e26\u6a2a\u9006\u306b\u3057\u3066\u3044\u308c\u3066\u3084\u308c\u3070\u3088\u3044\u3002\u6a2a\u306e\u56f3\u3067\u306f\u5206\u304b\u308a\u3084\u3059\u304f\u3059\u308b\u70baIOBox\u3092\u4f7f\u3063\u3066\u8a2d\u5b9a\u3057\u3066\u3044\u308b\u304c\u3082\u3061\u308d\u3093InputPin\u3092\u53f3\u30af\u30ea\u30c3\u30afor\u53f3\u30c9\u30e9\u30c3\u30b0\u3057\u3066\u5909\u66f4\u3057\u3066\u69cb\u308f\u306a\u3044\u3002\u3053\u308c\u3067\u6b63\u5186\u304c\u63cf\u753b\u3055\u308c\u308b\u3002<br \/>\n\u3067\u3082\u63cf\u753b\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u30b5\u30a4\u30ba(\u6bd4\u7387)\u3092\u304b\u3048\u3066\u3057\u307e\u3046\u3068\u307e\u305f\u3072\u3057\u3083\u3052\u308b\u306e\u3067\u5225\u306e\u65b9\u6cd5\u3067\u5bfe\u51e6\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3001\u3051\u3069\u307e\u305f\u5f8c\u306b\u3002<\/p>\n<p>\u3044\u307e\u306e\u3068\u3053\u308d\u306fRender\u30ce\u30fc\u30c9\u306b\u306f\u4e00\u3064\u305a\u3064\u3057\u304b\u56f3\u5f62\u3092\u30b3\u30cd\u30af\u30c8\u3067\u304d\u306a\u3044\u3093\u3067\u3001Circle\u30ce\u30fc\u30c9\u306e\u63a5\u7d9a\u3092\u306f\u305a\u3057\u3066\u5225\u306e\u56f3\u5f62\u3082\u63cf\u3044\u3066\u307f\u3088\u3046\u3002<\/p>\n<ul>\n<li>Line(GDI)\u306f\u7dda\u3092\u63cf\u304f\u30ce\u30fc\u30c9<\/li>\n<li>Point(GDI)\u306f\u70b9\u3092\u63cf\u304f\u3001\u30bf\u30a4\u30d7\u306f\u5de6\u304b\u30893\u756a\u76ee\u306eInputPin\u3067\u5207\u308a\u66ff\u3048\u53ef\u80fd<\/li>\n<li>RaundRect(GDI)\u306f\u89d2\u4e38\u306e\u9577\u65b9\u5f62\u3092\u4f5c\u308b\u3002Radius\u30920\u306b\u3059\u308c\u3070\u3001\u666e\u901a\u306e\u9577\u65b9\u5f62\u3002<\/li>\n<li>Text(GDI)\u306f\u30c6\u30ad\u30b9\u30c8<\/li>\n<\/ul>\n<p>\u4ed6\u306b\u30ab\u30c6\u30b4\u30eaGDI\u3067\u8868\u793a\u3059\u308b\u3068\u8272\u3005\u3042\u308b\u306e\u304c\u5206\u304b\u308b\u3002(\u30ab\u30c6\u30b4\u30ea\u8868\u793a\u306f\u7a7a\u30ce\u30fc\u30c9\u3092\u4f5c\u3063\u305f\u76f4\u5f8c\u306b\u53f3\u30af\u30ea\u30c3\u30af)<\/p>\n<p>\u3066\u306a\u611f\u3058\u3067\u7d42\u4e86\u3002\u6b21\u306f\u305f\u304f\u3055\u3093\u56f3\u5f62\u8868\u793a\u3068Inspektor\u30ce\u30fc\u30c9<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7c21\u5358\u306a\u30b0\u30e9\u30d5\u30a3\u30c3\u30af<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[12],"tags":[291],"class_list":["post-261","post","type-post","status-publish","format-standard","hentry","category-vvvv-toolkit","tag-vvvv"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p8YSE4-4d","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/posts\/261","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/comments?post=261"}],"version-history":[{"count":0,"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/posts\/261\/revisions"}],"wp:attachment":[{"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/media?parent=261"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/categories?post=261"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/tags?post=261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}