Click here to Skip to main content
15,888,271 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to add thickness to the line.
Is it possible to draw other shapes by pen thickness?
What to write instead of the question sign?
C# Code:
C#
WriteableBitmap writeableBitmap = BitmapFactory.New(500, 500);
writeableBitmap.DrawLinePenned(10, 10, 50, 50, ?);


What I have tried:

I tried the next code:
C#
WriteableBitmap writeableBitmap = BitmapFactory.New(500, 500);
writeableBitmap.DrawLinePenned(10, 10, 50, 50, ?);
Posted
Updated 9-Jan-21 3:45am

1 solution

Let
WriteableBitmap pen = BitmapFactory.New(4,4); // vert. and horz. 'thickness' is 4
pen.FillRectangle(0,0,3,3, Colors.Blue);      // the color you want

pen could be used for '?'.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900