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

C / C++ / MFC

 
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 
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 
Using an image list I added this

CBitmap bitmap;
bitmap.LoadBitmap(IDB_BITMAP2);
CImageList imagelist;
imagelist.Create(400, 400, ILC_COLOR24|ILC_MASK, 1, 1);
imagelist.Add(&bitmap, RGB(0x00,0xFF,0x00));
ImageList_Draw(imagelist, 0, hdc, 360, 10, ILD_TRANSPARENT);

where IDB_BITMAP2 is a 24-bit bitmap with background RGB(0x00,0xFF,0x00).

It draws transparently fine BUT always uses the background color of the DC (it doesn't blend
with what's already drawn on the dc).

So, drawing the imagelist bitmap on top of the PNG image leaves a white rect around the bitmap.
Drawing the PNG image on top of the imagelist bitmap works correctly - it alpha blends the PNG
image with the underlying bitmap.





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 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Yuriy20035-Jan-07 11:33
Yuriy20035-Jan-07 11:33 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Mark Salsbery5-Jan-07 11:46
Mark Salsbery5-Jan-07 11:46 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Yuriy20035-Jan-07 13:52
Yuriy20035-Jan-07 13:52 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Mark Salsbery30-Dec-06 12:12
Mark Salsbery30-Dec-06 12:12 

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.