Canvas. DrawRect (x As Double, y As Double, Width As Double, Height As Double, Paint As javafx.scene.paint.Paint, Filled As Boolean, StrokeWidth As Double)Draws a rectangle.x - Top left corner X coordinate. y - Top left corner Y coordinate. Width - The rectangle width. Height - The rectangle height. Paint - The rectangle fill or stroke paint. Filled - Whether the rectangle should be filled. StrokeWidth - The rectangle stroke (when Filled is False). B4J Question Error: Canvas.DrawRect - Erel (first post)    Mar 31, 2019 Last parameter should be a number: https://www.b4x.com/android/forum/pages/results/?query=Canvas.DrawRect&product=b4j
It is the stroke width.... B4J Question Canvas - moore_it    Aug 7, 2017 Hi, if i put an canvas on a form with internal designer and anchor it both orizontal and both vertical when i do to draw a rect ... nothing display. If I leave both selection the canvas.drawrect work fine. It's a bug or a my mistake ? Thanks... B4J Question Canvas/Image "PutPixel"? - wonder    Nov 23, 2016 @Erel, this is a B4J question, I should have posted in the B4J forum. Please move it accordingly... ---------------------------------------------------------------------------- Is there a Canvas (or Image) "PutPixel" method (using reflection)? My current workaround is: 'in B4J myCanvas.DrawRect(x, y, 1, 1, color, filled, 0) I would like to: myCanvas.PutPixel(x, y, color) '- or - myImage.PutPixel(x, y, color)... B4J Question Box2d and B4J - position of a falling dynamic body. - Eme Fibonacci    Jan 23, 2018 how to get the position of a dynamic body? It does not work. Sub Process_Globals Dim bd2 As jbBodyDef End Sub Sub Timer_Tick World.Step(1/Timer.Interval, 8, 3) Canvas.ClearRect(0, 0, Canvas.Width, Canvas.Height) Canvas.DrawRect(0, 0, Canvas.Width, Canvas.Height, fx.Colors.Black, True, 0) Log(bd2.position.y) World.drawDebugData End Sub Thank you.... B4J Code Snippet Create PNG File for Map Markers - Harris    Jan 30, 2021   (3 reactions) + 1 mCanvas.SetSize(width,height) mCanvas.DrawRect( 0 , 0, width, height, fx.Colors.White, True, 1) 'check size mCanvas.DrawText2(t, 1, 16 ,fx.DefaultFont(fs),fx.Colors... Private mCanvas As Canvas Private fx As JFX Type TextMetric (Width As Double,Height As Double... mCanvas.Initialize("") Dim fs As Double = 16 Dim TM As TextMetric... Out = File.OpenOutput(Dir, fn&".png", False) mCanvas.Snapshot.WriteToStream(Out... Bug? Canvas, color or bitmap defined in the Designer has no effect - klaus    Dec 22, 2016 As the title says, for Canvases, color or bitmap defined in the Designer has no effect. Their default background is transparent and remains. We need to draw those by code. Attached a small test program. Uncommenting these two lines shows what I expected. ' Canvas1.DrawImage(img1, 0, 0, Canvas1.Width, Canvas1.Height) ' Canvas2.DrawRect(0, 0, Canvas2.Width, Canvas2.Height, fx.Colors.Blue, True, 1)... B4J Tutorial Canvas inside a ScrollPane (Beginner-Tutorial) - Midimaster    Oct 23, 2020   (3 reactions) As Int
Canvas.DrawRect(0,0,1000,200,fx.colors.black,True, 0 )
For i=0 To 800 Step 2...
Else
High=100
Low=Random
End If
Canvas.DrawRect... As javafx.scene.paint.Paint...
101957
But you simply can define a JFX-Color here:
Canvas.DrawRect(0,0,1000... the button to draw a complete different graph. The first Canvas.DrawRect works like an CLS (here in... B4J Question [Solved] Need help with Canvas.DrawText. - Dominik H    Dec 2, 2020 ()
Canvas.DrawRect() - with fx.Colors.Transparent
Setting views invisible and visible again
Adding and...I'm at a loss here. I need to dynamically draw text with Canvas.DrawText, and while it works... B4J Tutorial Charts Framework - krlos2004 (first post)    Jan 26, 2015 for colored bars Chart : BD.Canvas.DrawRect(Rect, BD.BarsColors.Get(a), True, 1dip) 'not color for BD.Canvas.DrawRect(Rect, BD.BarsColors.Get(i-1), True, 1dip) ok... B4J Question DrawRect(), ClearRect() - what about GetRect() - FrankR    Dec 23, 2015 The Canvas has DrawRect() and ClearRect().
Is there a way to achieve a GetRect()?
Thanks.... Page: 1   2   3   4   5   6   |