Wish DrawBitmap no source rectangle - klaus    Nov 18, 2014 In B4A the DrawBitmap method has a SourceRectangle parameter to draw a part of the source bitmap.
In B4i the SourceRectangle parameter is missing.
Same for DrawBitmapRotated.
Is this an iOS limitation ?... B4A Tutorial [B4X] Drawing with BitmapCreator - Erel    Dec 22, 2019   (13 reactions) drawing features.
Background
At its core BC holds an array of bytes that represent an image...)
bc.DrawLine(0, 0, bc.mWidth, bc.mHeight, 0xff0000ff, 5dip)
Activity.SetBackgroundImage(bc... B4A Code Snippet Draw round bitmap - Erel    Sep 4, 2016   (25 reactions) Sub Name: DrawRoundBitmap Description: This code uses Path object to draw a round bitmap... As Canvas = CreateBitmap DrawRoundBitmap(cvs, LoadBitmap(File.DirAssets, "1.jpg")) Activity.SetBackgroundImage(cvs.Bitmap) End Sub Sub CreateBitmap As Canvas Dim bmp As Bitmap bmp....ClipPath(p) Return cvs End Sub Sub DrawRoundBitmap (cvs As Canvas, bmp As Bitmap) Dim r As Rect r.Initialize(0, 0, cvs.Bitmap.Width, cvs.Bitmap.Height) cvs.DrawBitmap(bmp, Null, r) End... B4J Library [B4X] [XUI] BitmapCreator - Pixels, Drawings and More - Erel    Mar 31, 2019   (23 reactions)   tags: B4X XUI BitmapCreator, bitmap image creator an image. 2. Platform specific code that efficiently creates a regular bitmap from the bytes array data... from a different BitmapCreator to this BitmapCreator. - Methods to draw a bitmap or a different BitmapCreator to this BitmapCreator. - Method to draw gradients. - And a few other methods. Scaling 1... for the transparency to have its expected effect. This is called blending. When you call DrawBitmap or DrawBitmapCreator you can choose whether to skip blending or not. It is significantly faster to... B4A Code Snippet [BAX] [XUI] BitmapCreator - DrawLine, DrawPath , DrawCircle, DrawArc, DrawImageTrapezoid - Star-Dust    Jun 20, 2018   (7 reactions)   tags: line, bitmapCreator BitmapCreator lacks some important instructions on Canvas.
Sometimes switching from BitmapCreator... with BitmapCreator.
I started writing some divers, if someone finds a way to improve it or add other... B4A Question DrawBitmap vs DrawBitmapRotated - ilan    May 15, 2022 hi
i am making some test and i noticed that using DrawBitmapRotated with b4x canvas object is much much slower than DrawBitmap but why?
what is the difference between both methods? why is drawing... B4A Question draw bitmap with alpha - ilan    Sep 30, 2016 hi
can i draw a bitmap via canvas with alpha 100 for example?
thanx... B4J Question Canvas.DrawImage2 fails with large pixel images - max123    Jan 12, 2023 Hi all,
in one of my libraries I wrote I've this line:
cvs.DrawImage2(img, 0, 0, W, H, 0, 0, W....DrawImage2(img, 0, 0, W, H, 0, 0, W, H)
End Sub
..... and here is the log with 20000x200 image... Games [XUI2D] BitmapCreator drawing methods - Erel    Nov 1, 2018   (7 reactions) / BitmapCreator v4.30 was released: https://www.b4x.com/android/forum/threads/b4x-xui2d-box2d-game-engine.95208 This version adds several new drawing methods: DrawLine, DrawRect and DrawCircle. https://www.b4x.com/basic4android/images/SS-2018-10-11_14.48.12.png Drawings are antialiased and with good performance. The main advantage of drawing with BitmapCreator directly is that the conversion: Canvas -> Bitmap -> BitmapCreator is not needed. This can save precious time inside the game... B4A Code Snippet [B4X] [BitmapCreator] Draw radial gradients - Erel    May 10, 2018   (8 reactions)   tags: circle fill gradient As BitmapCreator Dim scale As Float = 100dip / 100 bc.Initialize(ImageView1.Width / scale...) ImageView1.SetBitmap(bc.Bitmap) ...Currently BitmapCreator supports linear and cubic gradients. This sub creates a radial gradient: https://www.b4x.com/basic4android/images/SS-2018-05-10_12.06.58.png Public Sub FillRadialGradient (bc As BitmapCreator, GradColors() As Int, Rect As B4XRect) Dim RGBColor(GradColors.Length... Page: 1   2   3   4   5   |