Drawing slope lines in a confined space?

You really just need to translate them into the respective Canvas commands. For instance: Rectangle rectangle = new Rectangle(0, 0, 174, 75); canvas. Add(rectangle); Line slopeMainLineX = new Line(5, 70, 170, 70); slopeMainLineX.

SetStrokeOpacity(0.5); canvas. Add(slopeMainLineX); ... steepestLine. SetStrokeWidth(3) Would become: ctx.

FillRect(0, 0, 174, 75); ctx.beginPath(); ctx. MoveTo(5, 70); ctx. LineTo(170, 70); ctx.

GlobalAlpha = 0.5; ... ctx. LineWidth = 3 Changing it from 175x75 to 50x50 is just a matter of dividing the coordinates. The aspect ratio isn't the same though, so you're either going to be squishing things or cutting off a part.

You really just need to translate them into the respective Canvas commands. For instance: Rectangle rectangle = new Rectangle(0, 0, 174, 75); canvas. Add(rectangle); Line slopeMainLineX = new Line(5, 70, 170, 70); slopeMainLineX.

SetStrokeOpacity(0.5); canvas. Add(slopeMainLineX); ... steepestLine. SetStrokeWidth(3); Would become: ctx.

FillRect(0, 0, 174, 75); ctx.beginPath(); ctx. MoveTo(5, 70); ctx. LineTo(170, 70); ctx.

GlobalAlpha = 0.5; ... ctx. LineWidth = 3; Changing it from 175x75 to 50x50 is just a matter of dividing the coordinates. The aspect ratio isn't the same though, so you're either going to be squishing things or cutting off a part.

Forgive me, I apparently forgot to mention that this is using GWT's DrawingArea as a canvas. The commands you referenced don't exist for this control. – Chris Aug 25 at 18:05 Ooooh, sorry.

I thought you were using an HTML5 Canvas. There are actually much closer equivalents in GWT to the commands you had. See here: URL1 Making things like a line is almost exactly identical – Simon Sarris Aug 25 at 18:33 Thanks for the help.

– Chris Aug 25 at 18:57.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions