Click here to Skip to main content
16,006,531 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Mark Salsbery2-Jan-07 12:51
Mark Salsbery2-Jan-07 12:51 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Yuriy20032-Jan-07 13:03
Yuriy20032-Jan-07 13:03 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Mark Salsbery2-Jan-07 13:46
Mark Salsbery2-Jan-07 13:46 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Yuriy20032-Jan-07 15:25
Yuriy20032-Jan-07 15:25 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Mark Salsbery2-Jan-07 15:51
Mark Salsbery2-Jan-07 15:51 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Yuriy20032-Jan-07 18:20
Yuriy20032-Jan-07 18:20 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Mark Salsbery3-Jan-07 4:41
Mark Salsbery3-Jan-07 4:41 
GeneralRe: GetDIBits() works incorrectly with printer's DC [modified] Pin
Mark Salsbery3-Jan-07 5:46
Mark Salsbery3-Jan-07 5:46 
GDI+ draws transparent/alpha blend PNGs to the printer DC.

Using the PNG from here[^] I replaced the StretchDIBits() call
in PrintPicture() with

Gdiplus::Graphics graphics(hdc);
Gdiplus::Bitmap SrcBitmap(L"C:\\test.png", FALSE);
graphics.DrawImage(&SrcBitmap, 10,10,400,400);

and it worked fine.

My initial test with an image list didn't draw anything. It should have at least drawn without
transparency. I'm looking into this further.

Using masked blts with XOR/AND may work too but I'm too lazy to try....maybe I will Smile | :)



-- modified at 12:07 Wednesday 3rd January, 2007 - Fixed typing Smile | :)
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Yuriy20033-Jan-07 5:59
Yuriy20033-Jan-07 5:59 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Yuriy20033-Jan-07 6:30
Yuriy20033-Jan-07 6:30 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Mark Salsbery3-Jan-07 6:44
Mark Salsbery3-Jan-07 6:44 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Mark Salsbery3-Jan-07 6:06
Mark Salsbery3-Jan-07 6:06 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Yuriy20033-Jan-07 7:49
Yuriy20033-Jan-07 7:49 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Mark Salsbery3-Jan-07 8:00
Mark Salsbery3-Jan-07 8:00 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Yuriy20033-Jan-07 8:44
Yuriy20033-Jan-07 8:44 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Mark Salsbery3-Jan-07 9:26
Mark Salsbery3-Jan-07 9:26 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Yuriy20033-Jan-07 10:08
Yuriy20033-Jan-07 10:08 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Mark Salsbery3-Jan-07 10:19
Mark Salsbery3-Jan-07 10:19 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Yuriy20033-Jan-07 10:50
Yuriy20033-Jan-07 10:50 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Yuriy20033-Jan-07 11:56
Yuriy20033-Jan-07 11:56 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Mark Salsbery3-Jan-07 12:59
Mark Salsbery3-Jan-07 12:59 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Yuriy20035-Jan-07 11:10
Yuriy20035-Jan-07 11:10 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Mark Salsbery5-Jan-07 11:15
Mark Salsbery5-Jan-07 11:15 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Yuriy20035-Jan-07 11:22
Yuriy20035-Jan-07 11:22 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Mark Salsbery5-Jan-07 11:27
Mark Salsbery5-Jan-07 11:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.