Clipping while printing


i'm trying print vector graphics , want graphics clipped edge of paper.  i'm finding if try printing off top or left side of screen instead of clipping (which want) transforms drawing lines on screen (which don't want).

 

the following code should print equilateral triangle.  instead moves drawing down 72 points (1 inch) , prints check mark.  know how accomplish want?

 

private function doclipprint():void
  {
  var myprintjob:printjob = new printjob();
                
  if (myprintjob.start())
    {                   
    var sprite:sprite = new sprite();
    var g:graphics = sprite.graphics;
                              
    g.linestyle(1, 0x000000);
    g.moveto(0,0)
    g.lineto(72,72)
    g.lineto(2*72, -72)

 

    myprintjob.addpage(sprite);
    myprintjob.send();
    }                  
  }

thanks!

 

    -gary



More discussions in Flex (Read Only)


adobe

Comments

Popular posts from this blog

Help with codes to add 1 more shift register and add more to matrix LED

tcp client

Can't read sms using Thinker A7 communicate with Arduino