Printing on Windows 2000 - Red and Blue components swapped

Bug #165793 reported by Bug Importer
0
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Medium
Mrdocs-users

Bug Description

When printing document on Windows 2000, the colors
printed seem to be completely different. It seems that
Red and Blue component are swapped when sending to
printer (Red arrows are printed blue, yellow items are
printed light blue, light bluish items are yellow or
orange, what was black remain black, etc)
I'm using fineprint as printer driver and I noticed
this on the preview page before printing. Other images
from other programs are printed fine with good colors.

<email address hidden>

Tags: printing win32
Revision history for this message
Bug Importer (bug-importer) wrote :

This bug was reported as fixed before:

http://sourceforge.net/tracker/index.php?func=detail&aid=887428&group_id=93438&atid=604306

Has it reappeared? Or maybe that fix broke it for you while
fixing for others? Has it been this way all the time, or if
not, could you please find out the time when this broke?
Please test past versions and nightly builds.

Revision history for this message
Mental-users (mental-users) wrote :

What version of Inkscape is this?

Revision history for this message
Mental-users (mental-users) wrote :

A long time ago, I added this code to
src/extension/internal/win32.cpp:

                /* Swap red and blue channels; we use RGBA,
whereas
                 * the Win32 GDI uses BGRx.
                 */
                for ( i = 0 ; i < num_rows * width ; i++ ) {
                        unsigned char temp=px[i*4];
                        px[i*4] = px[i*4+2];
                        px[i*4+2] = temp;
                }

because we were experiencing exactly the problem described
here. It looks like the code upstream of that may have been
altered since, so we could now be writing into a real RGBA
buffer.

Could someone (mrdocs?) determine whether this bug occurs
with current CVS on Windows?

Revision history for this message
Mrdocs-users (mrdocs-users) wrote :

seems to work fine on win2k with 07052004 CVS

This is with a typical HP inkjet. I'll test a true CMYK PS3
printer tomorrow if time allows.

Revision history for this message
Buliabyak-users (buliabyak-users) wrote :

Mrdocs, can you please test this once more with current CVS
and ideally different printers so we could close this bug.

Revision history for this message
Mrdocs-users (mrdocs-users) wrote :

Tested fixed in 0.4.snapshot from Nov 11.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.