printing images



  Hello,

I'm currently writing the GNOME print backend
for the printing system of wxWidgets and all
goes well, except for that my little knowledge
of the PostScript language doesn't suffice to
understand what is wrong about my printing code
for images. I'm just trying to print RGB right
now. I use

gnome_print_moveto( gpc, x,y );
gnome_print_rgbimage( gpc, (chunk of RGB data), 32, 32, 32*3 );

but nothing shows up in the printout. It is
there in the file, but something is wrong.
I've included the PS output for a simple test
file (8Kb is hopefully OK). It shows a few lines
and on page 1 one large rectangle and a small one.
The image should be where the small rectangle is,
but it is not. 
I'm aware that this might be an obvious error,
but I don't see it. Maybe the positioning is
outside the visible bounds or the image in
shrunk to zero?

Thanks for any info,

  Robert

%!PS-Adobe-3.0
%%Creator: Gnome Print Version 2.8.0
%%CreationDate: D:20041103195809
%%LanguageLevel: 2
%%DocumentMedia: Regular 595 841 0 () ()
%%Orientation: Portrait
%%BoundingBox: 0 0 596 842
%%Pages: 2
%%PageOrder: Ascend
%%Title: 
%%DocumentSuppliedResources: procset pnome-print-procs-2.8.0
%%Requirements: numcopies(1) duplex
%%EndComments
%%BeginDefaults
%%PageMedia: Regular
%%EndDefaults
%%BeginProlog
%%BeginResource: procset gnome-print-procs-2.8.0
/B {load def} bind def
/n /newpath B /m /moveto B /l /lineto B /c /curveto B /h /closepath B
/q /gsave B /Q /grestore B
/J /setlinecap B /j /setlinejoin B /w /setlinewidth B /M /setmiterlimit
B
/d /setdash B
/rg /setrgbcolor B
/W /clip B /W* /eoclip B
/f /fill B /f* /eofill B
/S /stroke B
/cm /concat B
/SP /showpage B
/FF /findfont B /F {scalefont setfont} bind def
%%EndResource
%%EndProlog
%%BeginSetup
<<
/PageSize [595 841]
/ImagingBBox null
/Duplex true
/Tumble false
/NumCopies 1
/Policies <<
/PolicyNotFound 1
/PageSize 3
>>
>> setpagedevice
%%EndSetup
%%Page: 1 1
%%PageResources: (atend)
n
0 0 m
595.276 0 l
595.276 841.89 l
0 841.89 l
0 0 l
h
W
q
0 1 1 rg
n
99 560 m
496 560 l
496 362 l
99 362 l
99 560 l
h
f
1 0 0 rg
1.983 w 0 J 0 j 11 M
[]0 d
n
99 560 m
496 560 l
496 362 l
99 362 l
99 560 l
h
S
0 0 0 rg
[]0 d
n
99 620 m
496 223 l
S
[]0 d
n
496 620 m
99 223 l
S
0 1 1 rg
n
297 422 m
361 422 l
361 358 l
297 358 l
297 422 l
h
f
0 0 0 rg
[]0 d
n
297 422 m
361 422 l
361 358 l
297 358 l
297 422 l
h
S
q
[1 0 0 1 0 0]cm
/buf 96 string def
32 32 8
[32 0 0 -32 0 32]
{ currentfile buf readhexstring pop }
false 3 colorimage
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000

000000f80000f80000f80000f80000f80000f80000000000f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8
fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fc
f8f8fcf8f8fcf8f8fcf8f8fcf8000000

000000f80000f80000f80000f80000f80000f80000000000f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8
fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fc
f8f8fcf8f8fcf8f8fcf8f8fcf8000000

000000f80000f80000f80000f80000f80000f80000000000f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8
fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fc
f8f8fcf8f8fcf8f8fcf8f8fcf8000000

000000f80000f80000f80000f80000f80000f80000000000f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8
fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fc
f8f8fcf8f8fcf8f8fcf8f8fcf8000000

000000f80000f80000f80000f80000f80000f80000000000f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8
fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fc
f8f8fcf8f8fcf8f8fcf8f8fcf8000000

000000f80000f80000f80000f80000f80000f80000000000f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8
fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fc
f8f8fcf8f8fcf8f8fcf8f8fcf8000000

000000f80000f80000f80000f80000f80000f80000000000f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8
fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fc
f8f8fcf8f8fcf8f8fcf8f8fcf8000000

00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000

000000f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8000000f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8
fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf80000
000000f80000f80000f80000f8000000

000000f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8000000f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8
fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf80000
000000f80000f80000f80000f8000000

000000f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8000000f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8
fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf80000
000000f80000f80000f80000f8000000

000000f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8000000f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8
fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf80000
000000f80000f80000f80000f8000000

000000f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8000000f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8
fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf80000
000000f80000f80000f80000f8000000

000000f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8000000f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8
fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf80000
00000000000000000000000000000000

000000f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8000000f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8
fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf80000
00f8fcf8f8fcf8f8fcf8f8fcf8000000

000000f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8000000f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8
fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf80000
00f8fcf8f8fcf8f8fcf8f8fcf8000000

000000f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8000000f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8
fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f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f8
fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf80000
00f8fcf8f8fcf8f8fcf8f8fcf8000000

000000f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf800000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00f8fcf8f8fcf8f8fcf8f8fcf8000000

000000f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8000000f8fc00f8fc00f8fc00f8fc00f8fc00f8
fc00f8fc00f8fc00f8fc00f8fc00f8fc00f8fc0000000000bc0000bc0000bc0000bc0000bc000000
00f8fcf8f8fcf8f8fcf8f8fcf8000000

000000f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8000000f8fc00f8fc00f8fc00f8fc00f8fc00f8
fc00f8fc00f8fc00f8fc00f8fc00f8fc00f8fc0000000000bc0000bc0000bc0000bc0000bc000000
00f8fcf8f8fcf8f8fcf8f8fcf8000000

000000f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8000000f8fc00f8fc00f8fc00f8fc00f8fc00f8
fc00f8fc00f8fc00f8fc00f8fc00f8fc00f8fc0000000000bc0000bc0000bc0000bc0000bc000000
00f8fcf8f8fcf8f8fcf8f8fcf8000000

000000f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8000000f8fc00f8fc00f8fc00f8fc00f8fc00f8
fc00f8fc00f8fc00f8fc00f8fc00f8fc00f8fc0000000000bc0000bc0000bc0000bc0000bc000000
00f8fcf8f8fcf8f8fcf8f8fcf8000000

000000f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8000000f8fc00f8fc00f8fc00f8fc00f8fc00f8
fc00f8fc00f8fc00f8fc00f8fc00f8fc00f8fc0000000000bc0000bc0000bc0000bc0000bc000000
00f8fcf8f8fcf8f8fcf8f8fcf8000000

000000f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8f8fcf8000000f8fc00f8fc00f8fc00f8fc00f8fc00f8
fc00f8fc00f8fc00f8fc00f8fc00f8fc00f8fc0000000000bc0000bc0000bc0000bc0000bc000000
00f8fcf8f8fcf8f8fcf8f8fcf8000000

00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000

Q
Q
SP
%%PageTrailer
%%PageResources: procset gnome-print-procs-2.8.0
%%Page: 1 2
%%PageResources: (atend)
n
0 0 m
595.276 0 l
595.276 841.89 l
0 841.89 l
0 0 l
h
W
q
0 0 0 rg
0.867 w 0 J 0 j 11 M
[]0 d
n
43 625 m
187 625 l
S
[]0 d
n
43 625 m
43 482 l
S
0 1 1 rg
n
173 625 m
198 625 l
198 609 l
173 609 l
173 625 l
h
f
0 0 0 rg
[]0 d
n
173 625 m
198 625 l
198 609 l
173 609 l
173 625 l
h
S
0 1 1 rg
n
202 625 m
212 625 l
212 609 l
202 609 l
202 625 l
h
f
0 0 0 rg
[]0 d
n
202 625 m
212 625 l
212 609 l
202 609 l
202 625 l
h
S
0 1 1 rg
n
215 625 m
298 625 l
298 609 l
215 609 l
215 625 l
h
f
0 0 0 rg
[]0 d
n
215 625 m
298 625 l
298 609 l
215 609 l
215 625 l
h
S
0 1 1 rg
n
302 625 m
340 625 l
340 609 l
302 609 l
302 625 l
h
f
0 0 0 rg
[]0 d
n
302 625 m
340 625 l
340 609 l
302 609 l
302 625 l
h
S
0 1 1 rg
n
344 625 m
379 625 l
379 609 l
344 609 l
344 625 l
h
f
0 0 0 rg
[]0 d
n
344 625 m
379 625 l
379 609 l
344 609 l
344 625 l
h
S
0 1 1 rg
n
383 625 m
416 625 l
416 609 l
383 609 l
383 625 l
h
f
0 0 0 rg
[]0 d
n
383 625 m
416 625 l
416 609 l
383 609 l
383 625 l
h
S
0 1 1 rg
n
419 625 m
426 625 l
426 609 l
419 609 l
419 625 l
h
f
0 0 0 rg
[]0 d
n
419 625 m
426 625 l
426 609 l
419 609 l
419 625 l
h
S
1 0 0 rg
[]0 d
n
57 785 m
545 785 l
S
[]0 d
n
57 48 m
545 48 l
S
0 0 0 rg
[]0 d
n
29 803 m
573 803 l
S
Q
SP
%%PageTrailer
%%PageResources: procset gnome-print-procs-2.8.0
%%Trailer
%%EOF
 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]