alienhunter Active Member Licensed User Longtime User Apr 30, 2013 #1 Hi to all , why the fill option in drawpath fills over the path ? :BangHead: i use once the path in red and fill it and once in black to shoe the lines see jpg thanks AH Code: Copy canint.DrawPath(intholdp,Colors.Red,True,0) canint.DrawPath(intholdp,Colors.Black,False,1) Attachments drawpath.jpg 16.9 KB · Views: 505
Hi to all , why the fill option in drawpath fills over the path ? :BangHead: i use once the path in red and fill it and once in black to shoe the lines see jpg thanks AH Code: Copy canint.DrawPath(intholdp,Colors.Red,True,0) canint.DrawPath(intholdp,Colors.Black,False,1)
Informatix Expert Licensed User Longtime User Apr 30, 2013 #2 alienhunter said: Hi to all , why the fill option in drawpath fills over the path ? :BangHead: i use once the path in red and fill it and once in black to shoe the lines see jpg thanks AH Code: Copy canint.DrawPath(intholdp,Colors.Red,True,0) canint.DrawPath(intholdp,Colors.Black,False,1) Click to expand... This is the only method known to apply two different colors (one for the fill, another for the stroke). Even in Java, you can't do better. Upvote 0
alienhunter said: Hi to all , why the fill option in drawpath fills over the path ? :BangHead: i use once the path in red and fill it and once in black to shoe the lines see jpg thanks AH Code: Copy canint.DrawPath(intholdp,Colors.Red,True,0) canint.DrawPath(intholdp,Colors.Black,False,1) Click to expand... This is the only method known to apply two different colors (one for the fill, another for the stroke). Even in Java, you can't do better.
alienhunter Active Member Licensed User Longtime User May 1, 2013 #3 thanks Informatix looks like if the drawpath it cuts "corners" to fill , got other drawings that is even worst then this one that fills over the given path :sign0161: Upvote 0
thanks Informatix looks like if the drawpath it cuts "corners" to fill , got other drawings that is even worst then this one that fills over the given path :sign0161:
Informatix Expert Licensed User Longtime User May 1, 2013 #4 alienhunter said: thanks Informatix looks like if the drawpath it cuts "corners" to fill , got other drawings that is even worst then this one that fills over the given path :sign0161: Click to expand... You cannot fill "over the given path". That cannot happen. Even if the path functions are very limited in B4A, they work as expected. There's probably something wrong in your code, but without seeing it, it's difficult to say more. For your information, I created a library called Accelerated Surface that gives access to a wider range of possibilities for paths (almost the same you have in Java). You're not limited to lines, and you can define how a shape is filled. Upvote 0
alienhunter said: thanks Informatix looks like if the drawpath it cuts "corners" to fill , got other drawings that is even worst then this one that fills over the given path :sign0161: Click to expand... You cannot fill "over the given path". That cannot happen. Even if the path functions are very limited in B4A, they work as expected. There's probably something wrong in your code, but without seeing it, it's difficult to say more. For your information, I created a library called Accelerated Surface that gives access to a wider range of possibilities for paths (almost the same you have in Java). You're not limited to lines, and you can define how a shape is filled.
alienhunter Active Member Licensed User Longtime User May 2, 2013 #5 thanks for the info , that lib looks very nice i will give it a try with my next update to the customer , oh well i might have a bug somewhere you are right , anyway there is too much code to go thru , there are 4 canvas that are drawing similar things( see jpg, not everything on this dimensions are missing ) form a CAD system Attachments more2.jpg 27.1 KB · Views: 425 Last edited: May 2, 2013 Upvote 0
thanks for the info , that lib looks very nice i will give it a try with my next update to the customer , oh well i might have a bug somewhere you are right , anyway there is too much code to go thru , there are 4 canvas that are drawing similar things( see jpg, not everything on this dimensions are missing ) form a CAD system
Informatix Expert Licensed User Longtime User May 2, 2013 #6 alienhunter said: thanks for the info , that lib looks very nice i will give it a try with my next update to the customer , oh well i might have a bug somewhere you are right , anyway there is too much code to go thru , there are 4 canvas that are drawing similar things( see jpg, not everything on this dimensions are missing ) form a CAD system Click to expand... The image is so small that I can't see anything. Upvote 0
alienhunter said: thanks for the info , that lib looks very nice i will give it a try with my next update to the customer , oh well i might have a bug somewhere you are right , anyway there is too much code to go thru , there are 4 canvas that are drawing similar things( see jpg, not everything on this dimensions are missing ) form a CAD system Click to expand... The image is so small that I can't see anything.
alienhunter Active Member Licensed User Longtime User May 2, 2013 #7 better now ? 960x680 pixel Attachments more2.jpg 35.3 KB · Views: 548 Last edited: May 2, 2013 Upvote 0
Informatix Expert Licensed User Longtime User May 2, 2013 #8 alienhunter said: better now ? 960x680 pixel Click to expand... Yes. But what am I supposed to see ? I can't see a problem on it. Upvote 0
alienhunter said: better now ? 960x680 pixel Click to expand... Yes. But what am I supposed to see ? I can't see a problem on it.
alienhunter Active Member Licensed User Longtime User May 2, 2013 #9 thanks for your help and info i found the bug:BangHead: Attachments more2.jpg 60.7 KB · Views: 467 Upvote 0