2010年11月17日 星期三

CreateDIBSection

在做印表機驅動程式的時候,要在圖片旁邊加字。
使用到CreateDIBSection

因為 Resolution 太大( 2392x3400) 所以 CreateDIBSection 只能一次
第二次會失敗。

所以每次都要釋放乾淨。
要用

SelectObject 把 DIBSection select 出來
然後 DeleteObject