New Forum | Previous | Next | (P-PDF) Developers
Topic: drawing to DC saturated
Conf: (P-PDF) Developers, Msg: 96594
Date: 9/18/2003 02:44 AM
I have used the following code in a plugin to rasterize pages in a DC (then dumped to a BMP file).
mat.a = ASFloatToFixed(1.f)*zoom;
mat.d = ASFloatToFixed(-1.f)*zoom;
mat.b = mat.c = fixedZero;
mat.h = fixedZero;
mat.v = mediaBoxP.top*zoom;
PDPageDrawContentsToWindow(currentPage, NULL,(void*)dc, false, &mat, NULL, NULL,NULL);
However, it seems that my colors are too saturated, compared to the screen capture I can get from acrobat. It also seems that rendering is not quite the same, as if antialiasing wasn't used on my DC.
Do you have a hint ?