Page 1 of 1
Render Image to Windows device context
Posted: 2016-11-01T18:53:24-07:00
by eldiener
How do I render an Magick++ Image to a Windows device context so that an image appears in a window ?
Re: Render Image to Windows device context
Posted: 2016-11-02T07:55:33-07:00
by snibgo
You need to call a bunch of Windows functions, which are outside the scope of this forum. In a nutshell: CreateCompatibleDC() and CreateCompatibleBitmap(), then looping through y and x SetPixel(), then finally BitBlt().
Re: Render Image to Windows device context
Posted: 2016-11-03T13:27:17-07:00
by eldiener
I did find how to do it from the IMDisplay and NTMagick example code. It would be nice if the Magick++ API added the techniques found in those examples to its API as a member function of the Image class specific Windows programming.