Simpler PostScript output of Fl_Bitmap objects

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7696 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2010-09-04 12:49:35 +00:00
parent 0dc7b5edc5
commit 3b3197a86a
2 changed files with 2 additions and 2 deletions

View File

@ -270,7 +270,7 @@ static const char * prolog =
"/MI { GS /py exch def /px exch def /sy exch def /sx exch def \n"
"translate \n"
"sx sy scale px py false \n"
"sx sy scale px py true \n"
"[ px 0 0 py neg 0 py ]\n"
"currentfile /ASCIIHexDecode filter\n"
"imagemask GR\n"

View File

@ -517,7 +517,7 @@ void Fl_PostScript_Graphics_Driver::draw(Fl_Bitmap * bitmap,int XP, int YP, int
for (j=0; j<HP; j++){
for (i=0; i<xx; i++){
if (!(i%80)) fprintf(output, "\n"); // not have lines longer than 255 chars
fprintf(output, "%.2x",swap_byte(~(*di)));
fprintf(output, "%.2x", swap_byte(*di) );
di++;
}
fprintf(output,"\n");