win32Lib pixmap
- Posted by buzzo Nov 22, 2014
- 1547 views
I am using GDIPlus for jpeg images; photos
Have not been able to place an image from GDIPlus on a pixmap.. can draw to the pixmap without problems.
Also can copy the pixmap to a window successfully with bitBlt or copyBlt.
If I then put the images on that window, the images disappear when the window is scrolled.
When attempting to place the image on the pixmap, the program fails at this line:
status=GdipCreateFromHWND(getHandle(VirtScrn),ppGraphics)
The value of status is 3.. indicating "out of memory HWND". If use getHandle(ChartWin), a normal window, status is 0 and the image is drawn.
I would think both VirtScrn and ChartWin are atoms, but I could be incorrect.
- charting VirtScrn = createEx( Pixmap, "", 0, 0, 0, 0, 0, 0, 0), ChartWin = createEx( Window, "Relatives Chart", 0, 0, 0,vxChartWin, vyChartWin,{WS_POPUP,WS_BORDER, WS_SCROLLBARS},0),
The 0's are replaced depending on the size of the chart.
I have studied win32lib.ew, but did not get a clue on this problem.
As usual, advise will be appreciated .
Buzzo