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 ... B4J Library AsyncCanvas, B4XCanvas wrapper with Invalidate for B4J - max123    Nov 17, 2023   (3 reactions) implementation of B4A B4XCanvas with working Invalidate. After I figured that Canvas.Invalidate do nothing... of B4XCanvas with Invalidate function on B4J. Using this library you can draw more things on canvas and... have been added to original B4XCanvas: - DrawRoundRect - DrawRoundRectRotated - DrawOval... you all the drawings. UPDATED: v1.08 Add a command to get native Canvas from B4XCanvas, this code now..., width and height. Canvas As B4XCanvas Returns the native B4XCanvas. Panel As B4XView Returns... B4A Tutorial [B4X] [XUI] Drawing with B4XCanvas - Erel    Oct 24, 2017   (18 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 Question b4xCanvas MeasureText (Multiline) - fbritop    Jan 26, 2021 Is it posible to calculate the height of a label and text, but with multiple lines? The way that b4i... 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... B4J Question B4XCanvas - InitializeArc looks different than in B4A - Alexander Stolte    May 19, 2020 Hey,
why it look in B4J so?:
94362
and on B4A only the right outer line is to watch?
Dim tmp_bp As B4XPath
tmp_bp.InitializeArc(xcv_main.TargetRect.CenterX,xcv_main.TargetRect.CenterY,Height/2,10... Wish No anti alias option on B4XCanvas - wimpie3    Mar 7, 2024 Currently B4XCanvas uses anti aliasing.
This poses problems if you need pixel perfect drawings and fonts. I have a font that contains special characters and I want to measure and print a string from that font without having an anti alias effect.
Could you add an option to deactivate anti aliasing on B4XCanvas to be able to use MeasureFont and DrawText without extra pixels added by the anti... B4J Code Snippet A method for drawing paths of line shapes in B4J with B4XCanvas - William Lancee    Jul 25, 2021   (4 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... B4A Question B4XCanvas rounded square corners - Scantech    Mar 16, 2019 How do I draw rounded square corners with 2 gradient color in B4Xcanvas? Thanks... Page: 1   2   3   4   5   |