Hue
June 11th, 2004, 10:05 PM
I am wanting to print a number of overlapping bitmaps to a printer that does not support the AlphaBlend function. My images have either 0 or 255 as the alpha value.
I have some code that operates on my image, and the current output as bitmaps/pixel arrays. Depending upon the alpha value will take the new pixel from either the source or destination bitmaps. I have tried both CreateDIBSection and GetDIBits, and in both cases I get an array of 0s returned - with no error code.
Theoretically I could generate a bitmap in memory and draw to that, before sending to the printer, but as I would like to use 1200dpi A0 printers this may cause problems.. :)
Is there a better command to get the information from the printer, or even a different algorithum to replace the alphablend function?
Thanks
Hugh Dixon
I have some code that operates on my image, and the current output as bitmaps/pixel arrays. Depending upon the alpha value will take the new pixel from either the source or destination bitmaps. I have tried both CreateDIBSection and GetDIBits, and in both cases I get an array of 0s returned - with no error code.
Theoretically I could generate a bitmap in memory and draw to that, before sending to the printer, but as I would like to use 1200dpi A0 printers this may cause problems.. :)
Is there a better command to get the information from the printer, or even a different algorithum to replace the alphablend function?
Thanks
Hugh Dixon