stevehaigh
11-20-2005, 07:16 PM
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
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