![]() |
|
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Registered User
Join Date: Nov 2005
Posts: 1
|
problem printing bitmaps to pdf
my program, TabTrax (http://2112design.com) , has a sheet music format print feature. when printing using primopdf, the bit blit images don't print correctly (it prints fine to screen, adobe distiller and most printers). i use this MS API call:
CDC::BitBlt BOOL BitBlt( int x, int y, int nWidth, int nHeight, CDC* pSrcDC, int xSrc, int ySrc, DWORD dwRop ); for bit map rendering with transparency. and here is an example of how i print: pDC->BitBlt( restX, restY, bms->m_bmi.bmWidth, bms->m_bmi.bmHeight, &bms->m_dcMask, 0, 0, SRCAND); pDC->BitBlt( restX, restY, bms->m_bmi.bmWidth, bms->m_bmi.bmHeight, &bms->m_dc, 0, 0, SRCPAINT); the first call creates the transparency mask and the 2nd one paints the bitmap. this is standard microsoft API for bit blitting bit maps with transparent background. when primopdf prints, instead of a nice round music note, i get a rectangular blob, as if the transparency mask was doing the paint. any ideas? thanks, steve |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|