tag:blogger.com,1999:blog-1077468864044303325.post7531810967460995179..comments2024-03-20T18:47:57.268+02:00Comments on Behind the connection: Direct2D canvas for Delphi formsFPiettehttp://www.blogger.com/profile/08260455911271500004noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-1077468864044303325.post-63593059857409375422020-08-30T09:02:49.488+02:002020-08-30T09:02:49.488+02:00You are right!
I updated the code in the article t...You are right!<br />I updated the code in the article to resize the canvas instead of recreating it.FPiettehttps://www.blogger.com/profile/08260455911271500004noreply@blogger.comtag:blogger.com,1999:blog-1077468864044303325.post-91424414220361080902020-08-30T02:10:29.432+02:002020-08-30T02:10:29.432+02:00Looks like OnResize is leaking a canvas every resi...Looks like OnResize is leaking a canvas every resize.<br /><br />Does the canvas really have to be destroyed and recreated? It can't be resized?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1077468864044303325.post-39140678918044432392020-08-29T10:32:21.839+02:002020-08-29T10:32:21.839+02:00That is a kind of fake news based of very old publ...That is a kind of fake news based of very old publications. As with any API, you have to use it correctly to benefit from his performance fully. And if you have poor driver with your cheap display interface, then upgrade or then complain your driver manufacturer, not Microsoft API. And if by chance you have a bad driver, you can still using Direct2D to benefit from his features. <br />See those FPiettehttps://www.blogger.com/profile/08260455911271500004noreply@blogger.comtag:blogger.com,1999:blog-1077468864044303325.post-9869238099987926292020-08-29T10:14:20.592+02:002020-08-29T10:14:20.592+02:00IIRC in practice Direct2D is told to be most of th...IIRC in practice Direct2D is told to be most of the time slower than GDI, due to problems with drivers. So what is the benefit of using Direct2D if the performance impact is not consistent?Arnaudhttps://www.blogger.com/profile/00421394020248758254noreply@blogger.com