Object documentation: B4XCanvas Wish B4X XUI Add MeasureTextWidth and MeasureTextHeight to B4XCanvas - klaus    Apr 13, 2018 Hi Erel, The title says the wish. Currently, there are three different routines in the class with different results. Example: MeasureTextHeight("Mg") and MeasureTextHeight("M") give different results in B4A because the real height is different, but give the same result in B4J. I have not checked with B4i.... Wish B4Xcanvas.getCanvas - Tayfur    Oct 30, 2018 Hi @Erel; is it possible ; i need using for old libs. private B4Xcnvs as B4XCanvas private cnvs as Canvas cnvs=B4Xcnvs.getCanvas ... B4A Tutorial [B4X] [XUI] Drawing with B4XCanvas - Erel    Oct 24, 2017   (16 reactions)   tags: XUI B4XCanvas is the cross platform version of Canvas.
Steps to using B4XCanvas:
1. Initialize and... you should call B4XCanvas.Resize. This is more relevant in B4J and B4i as the activity is recreated in... B4A Code Snippet [B4X] [B4XCanvas] Fill a panel with diagonally drawn lines - Alexander Stolte    Apr 5, 2022   (14 reactions) As B4XCanvas
xcv.Initialize(Target)
Dim p As Float = -(IIf(Width > Height,Width...127529
FillWithDiagonallyDrawnLines(xpnl_Main,15dip,20dip,xui.Color_ARGB(255,49, 138, 123))
Private Sub FillWithDiagonallyDrawnLines(Target As B4XView,Thickness As Float,GapBetween As Float,Color... B4A Question B4XCanvas rounded square corners - Scantech    Mar 16, 2019 How do I draw rounded square corners with 2 gradient color in B4Xcanvas? Thanks... B4A Question [XUI] [B4X] B4XCanvas - Star-Dust    May 15, 2021 Is it possible when drawing with canvas to change from XOR mode to Paint Mode or other drawing modes?
The question is about B4A, B4J... Bug? B4XCanvas - Difference B4J Recognizes CRLFs, B4A does not - MrKim    May 16, 2021 B4A treats them as a space.. Haven't checked B4i.
B4j Also correctly measures the height.... B4i Question B4XCanvas.DrawPathRotated ? - MitchBu    Mar 20, 2021 )
Dim left As Float = 200
Dim top As Float = 200
Dim myPath As B4XPath
myPath... B4J Code Snippet A method for drawing paths of line shapes in B4J with B4XCanvas - William Lancee    Jul 25, 2021   (3 reactions) listToPath(pntList As List, thickness As Float) As B4XPath 'This method works for all... As B4XPath Dim epsilon As Float = .001 Dim firstPt(2), lastPt(2), prevPt(2) As Object Dim....Add(Array(-0.4, 0.0)) fromCenter.Add(Array(-0.2, 0.0)) fromCenter.Add(Array(0.0, 0.0)) fromCenter.Add(Array(0.2, 0.0)) fromCenter.Add(Array(0.4, 0.0)) drawRotatedShape (fromCenter... B4i Question B4XCanvas drawpath? - ilan    Dec 20, 2020   (1 reaction) be faster?
this is the relevant code:
Private Sub drawballwithpattern As B4XBitmap
cnv.ClearRect(cnv.TargetRect)
Dim ballshape As B4XPath
ballshape.InitializeOval(returnRect(0,0...)
cnv.RemoveClip '<---- is this necessary???
Dim bmp As B4XBitmap = cnv.CreateBitmap... Page: 1   2   3   4   |