B4A Question Reverse colours and do mirror image of FontAwesome or Material icons - TILogistic (first post)    
Sep 17, 2024 newargb As ARGBColor
Dim a As ARGBColor
BMC.ColorToARGB(OldColor, oldargb)
BMC.ColorToARGB(NewColor, newargb)
If KeepAlphaLevel Then
For x = 0 To BMC.mWidth - 1...
link: As ARGBColor
Dim a As ARGBColor
BMC.ColorToARGB(OldColor, oldargb)
BMC.ColorToARGB(NewColor...
link: As ARGBColor
bc.ColorToARGB(NewColor, a1)
For y = 0 To bc.mHeight - 1
For x = 0 To bc.mWidth...
link: a As ARGBColor
BMC.ColorToARGB(OldColor, oldargb)
BMC.ColorToARGB(NewColor, newargb...
B4A Question Get XUI RGB - DonManfred (first post)    
Mar 11, 2019https://www.b4x.com/android/forum/pages/results/?query=ColorToARGB
?...
B4A Code Snippet [B4X] [BitmapCreator] Draw radial gradients - Erel    
May 10, 2018   
(8 reactions)   
tags: circle fill gradient) As ARGBColor
For i = 0 To GradColors.Length - 1
bc.ColorToARGB(GradColors(i), RGBColor...))
bc.SetARGB(x, y, DistanceToColor(distance))
Next
Next
End Sub
Usage example:
Dim bc...)))
Dim DistanceToColor(MaxDistance) As ARGBColor
Dim CurrentColorIndex As Int
Dim LengthOfEachColor As Int = Ceil(MaxDistance / (GradColors.Length - 1))
Dim c As Int
For i = 0 To MaxDistance - 1
Dim l As Float = CurrentColorIndex / LengthOfEachColor
DistanceToColor...
B4A Question [B4X] Huge filesizes with AnimatedGifEncoder - Blueforcer    
Aug 13, 2023 As BitmapCreator
bc.Initialize(8,8)
For y = 0 To 8 - 1
For x = 0 To 8 - 1
Dim i As Float = y * 8 + x
Dim a As ARGBColor
bc.SetARGB(x,y,bc.ColorToARGB(frame.Get(i),a))
Next
Next
BitmapList.Add(bc.Bitmap)
Next...?)
Unfortually both outputs "very big" files
Since i need to upload them to a microcontroller im... a compression is missing.
Is it possible to add this in any kind to one of the libraries?
this is how i build...
B4J Question Remove background png - JordiCP (first post)    
Dec 21, 2021   
(6 reactions) As BitmapCreator = CreateBC(bmp)
Dim oldargb, newargb, a As ARGBColor
bc.ColorToARGB(OldColor, oldargb)
bc.ColorToARGB(NewColor, newargb)
For x = 0 To bc.mWidth - 1
For y = 0 To... As BitmapCreator = efecto.CreateBC(bmp)
Dim oldargb, newargb, a As ARGBColor
bc.ColorToARGB(OldColor, oldargb)
bc.ColorToARGB(NewColor, newargb)
For x = 0 To bc.mWidth - 1
For y = 0 To bc.mHeight - 1
bc.GetARGB(x, y, a)
If a.a = oldargb.a And a.r...
Wish XUI GetARGB function. - William Lancee (first post)    
Jul 9, 2021   
(6 reactions)That would be nice. I know that your wish is for it to be a built-in XUI method, and I know you know how to do this. But for those who are unfamiliar with this...
Dim bc As BitmapCreator 'Include this standard core library
bc.Initialize(0, 0) 'Zeroes because we don't really need any bits
Dim argb As ARGBColor
bc.ColorToARGB(xui.Color_ARGB(150, 75, 230, 255), argb)
Log(argb.a & TAB & argb.r & TAB & argb.g & TAB & argb.b)
...
B4A Question [SOLVED] Shadow in BBLabel - Erel (first post)    
Jan 21, 2026   
(6 reactions) As ARGBColor
bc.ColorToARGB(ShadowColor, shadow)
For x = 0 To bc.mWidth - 1
For y = 0 To bc.mHeight - 1
If bc.IsTransparent(x, y) Then Continue
bc.SetARGB(x, y... AddShadow (Lbl As BBLabel, OffsetX As Int, OffsetY As Int, ShadowColor As Int)
Dim fiv As B4XView....mBackgroundColor = xui.Color_Transparent
iv.ResizeMode = "NONE"
iv.mBase.Tag....mBase, fiv.Left + OffsetX, fiv.Top + OffsetY, fiv.Width, fiv.Height)
iv.mBase.SendToBack
iv...
B4i Question MLKit Selfie Segmentation - Erel (first post)    
Oct 1, 2024   
(2 reactions).ColorToARGB(xui.Color_Black, oldargb)
SelfieBC.ColorToARGB(xui.Color_Transparent, newargb)
For x = 0 To SelfieBC.mWidth - 1
For y = 0 To SelfieBC.mHeight - 1
MaskBC.GetARGB...
ivOrigSmall.Bitmap = bmp
ivOriginal.mBackgroundColor = xui.Color_Transparent
Wait For...
SelfieBC.SetARGB(x, y, newargb)
End If
Next
Next
Return SelfieBC.Bitmap
End Sub
Tested in B4i only. It might need a different color in B4A.
Note that if you change...
B4A Question WriteToStream quality - Blueforcer (first post)    
Aug 17, 2023?
Dim bc As BitmapCreator
bc.Initialize(8,8)
For y = 0 To 7
For x = 0 To 7
Dim i As int = y * 8 + x
Dim a As ARGBColor
bc.SetARGB(x,y,bc.ColorToARGB(frame.Get(i),a))
Next
Next
Dim b As B4XBitmap = bc.Bitmap
b.WriteToStream(File.OpenOutput(xui.DefaultFolder, "test...I need to build something.
because currently its part of a huge project, the bitmap is generated by a pixeldrawer
144868
I also see, that the filesize of android output is 299 bytes, while iOS...
Wish XUI drawline/rectangle straight line as non antialised - Erel (first post)    
Aug 3, 2019.mHeight Then Return
Dim argb As ARGBColor
bc.ColorToARGB(clr, argb)
For x = Max(0, Min(x1, x2)) To Min(Max(x1, x2), bc.mWidth - 1)
bc.SetARGB(x, y, argb)
Next
End Sub
Sub....mWidth Then Return
Dim argb As ARGBColor
bc.ColorToARGB(clr, argb)
For y = Max(0, Min(y1, y2)) To Min(Max(y1, y2), bc.mHeight - 1)
bc.SetARGB(x, y, argb)
Next
End Sub
...
link: .
In the routines in post#29, what is the reason for using:
Dim argb As ARGBColor
bc.ColorToARGB(clr...
Page: 1  
2  
3  
4  
5  
6  
7