Any ideas why PB will not print a bitmap correctly with the following code?? Only the top part of the bitmap is printing out!
Jim
Jim
Code:
xprint attach choose,title$ orient&=2 ''landscape xprint set orientation orient& xprint get client to prwidth&,prheight& ff&=freefile open bmpfilename$ for binary as #ff& base=0 seek #ff&,18 get$ #ff&,8,b$ close #ff& bmwidth&=cvl(left$(b$,4)) bmheight&=cvl(right$(b$,4)) ''msgbox str$(bmwidth&)+str$(bmheight&)+str$(prwidth&)+str$(prheight&) ''(sizes look correct) graphic bitmap load bmpfilename$,bmwidth&,bmheight& to hbmp& x&=prwidth& y&=bmheight&*(prwidth&/bmwidth&) xprint stretch hbmp&,0, _ (0,0)-(bmwidth&,bmheight&) to (0,0)-(x&,y&), _ %mix_copysrc xprint close graphic bitmap end
Comment