B4A Question Create a mutable bitmap and draw over it with Canvas - cenyu (first post)    Jan 9, 2023 This is great! Thank you very much Klaus!
I appreciate your help very much!... B4i Question B4i Bitmap.initialize mutable ? - MitchBu (first post)    Mar 3, 2022
I do it like this:
Private MyBitmap As B4XView
Private pnl As B4XView
Private cvs...
cvs.Initialize(pnl)
MyBitmap = cvs.CreateBitmap
Thank you Klaus. You save my life :)... Games [XUI2D] BitmapCreator vs. CompressedBC - Erel    Oct 14, 2018   (7 reactions)   tags: Bc, cbc, bitmapl to understand how to use them. Lets start with BitmapCreator. BitmapCreator is similar to a mutable bitmap. Its core is made of an array of bytes that stores the image data. When you call... BitmapCreator with X2.BitmapToBC. This sub calls bc.CopyPixelsFromBitmap to extract the image data from... on a BitmapCreator, the transparent parts in the source image will not be copied to the target BC (which... is made of 4 images. The furthest image is stored as a BitmapCreator and the others are stored as CBCs... 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 at the center of a transparent mutable bitmap. Sub Activity_Create(FirstTime As Boolean) Dim cvs 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.InitializeMutable(200dip, 200dip) Dim cvs As Canvas cvs.Initialize2(bmp) Dim r As Rect r... B4A Question Bitmap.InitializeMutable(width, height) Unknown member ? - MitchBu (first post)    Nov 10, 2016   (1 reaction) It works ! :D
Private bitmap2 As Bitmap
bitmap2.InitializeMutable(800,600)
cvs.Initialize2(bitmap2)
cvs.DrawColor(Colors.Green)
Dim Out As OutputStream
Out = File.OpenOutput... B4A Question 3 channel Bluetooth "oscilloscope" TOO slow - Erel (first post)    Apr 25, 2021 Don't create a new canvas every time. Reuse it. A canvas holds a large mutable bitmap.... B4A Question Save Installed Apps Icon as File - Erel (first post)    Feb 14, 2021 Best option is to use Canvas.DrawDrawable to draw the icon on a mutable bitmap.... B4A Question [SOLVED] text to picture (watermark) - madru (first post)    Nov 22, 2020   (1 reaction) forgot about Mutable Bitmap, it is properly mentioned 1000+ times in the Forum ;)
THX :)... B4A Question How to draw on a Bitmap? - Inman    Oct 16, 2013 I have a Bitmap object loaded with an image file from the cache folder. I don't have any imageview yet, just the Bitmap object. I want to draw a shape (like line or rectange) on this bitmap. I tried the Canvas object but it seem to draw only on Views and on mutable bitmaps, but not on bitmaps... B4A Question Canvas initialization cause OOM - Erel (first post)    May 20, 2018 Can you tell where I am doing wrong
You are not reusing the canvas.
Initialize it once in Activity_Create with a mutable bitmap (the mutable bitmap should be a process global variable) and reuse it.... Page: 1   2   3   4   5   6   7   |