B4A Library ScaleImageView - Pan and zoom large images - agraham    Feb 18, 2021   (29 reactions)
Returns a Bitmap containing the image presently displayed in the ScaleImageView... covers the entire UK at various scales and requires the ability to display large map images...
B4A Question [Wish] CreateScaledBitmap = core function - Djembefola    Sep 18, 2012   (2 reactions)
I very often need the following function in my classes:
Sub CreateScaledBitmap(Original..., "createScaledBitmap", _
Array As Object(Original, Width, Height, filter...
B4A Library Subsampling Scale Image View Library - Pendrush    Apr 4, 2020   (10 reactions)
Original library link: https://github.com/davemorrissey/subsampling-scale-image-view Original description: A custom image view for Android, designed for photo galleries and displaying huge images (e... images and when displaying a bitmap object. There are some advantages and disadvantages to disabling.../subsampling-scale-image-view/master/docs/images/demo.gif Example project: https://www.dropbox.com/s/jyri8y18g0hwgjt/SubsamplingScaleImageViewExample.zip?dl=0 I haven't searched the forum before...
Games Filling of polygon and convert to ScaledBitmap not drawing - Gunther    Nov 27, 2018
Dim sb As X2ScaledBitmap
sb.Scale = 1
sb.Bmp = bc... to create a bitmap to be used as the preloaded graphic for the GraphicCache.
The vertics are less...
B4A Library ScaleImageView - jpg_jgw and vector maps - js486dog    Mar 19, 2020   (4 reactions)
Fascinated with ScaleImageView I have to made this little code (w_map.zip). ScaleImageView library was created by "agraham" and link is here: https://www.b4x.com/android/forum/threads/scaleimageview-pan-and-zoom-large-images.102190/ The code is not perfect but you can see how to use ScaleImageView for offline mapping. You can use jpg/jgw , png/pgw raster map world file format (map... another examples of the code. agraham thanks for ScaleImageView....
B4A Question Best method to draw scaled bitmaps? - Jeffrey Cameron    Mar 1, 2019
you have a large random bitmap (as opposed to a Tiled map or asset image) that gets marked up and you need to...I've searched and not found a recent example with B4XBitmap/BitmapCreator/DrawTask so I figured...
B4J Code Snippet [B4X][XUI] Fill and Fit images without distortion - Erel    Jan 26, 2021   (22 reactions)   tags: image, image show aspect ratio, IMAGEVIEW
, ImageView As B4XView) Dim scale As Float = 1 #if B4i scale = GetDeviceLayoutValues.NonnormalizedScale #End If ImageView.SetBitmap(bmp.Resize(ImageView.Width * scale, ImageView.Height * scale, True)) End Sub Sub FillImageToView(bmp As B4XBitmap, ImageView As B4XView) Dim bmpRatio... = GetDeviceLayoutValues.NonnormalizedScale #End If ImageView.SetBitmap(bmp.Resize(ImageView.Width * scale, ImageView.Height * scale, True)) End Sub Usage example (B4J): Sub Process_Globals...
B4A Library [B4X] BitmapCreator Effects - Erel    Apr 29, 2021   (31 reactions)   tags: image effect flip, BitmapCreator, Effect, B4X BitmapCreator Effects
then you should set the image when ScaleDown = False, with XUIViewsUtils.SetBitmapAndFill. v1.31...BitmapCreatorEffects class includes all kinds of very simple to use image effects. The class... an image: Dim GreyImage As B4XBitmap = effects.GreyScale(ExistingBmp) 'Blur an image: Dim BlurImage As B4XBitmap = effects.Blur(ExistingBmp) 272558725 The attached examples demonstrate the various methods. Updates v1.40 - Adds support for B4XImageViews (XUI Views). - New ScaleDownImages...
B4A Question Wish: Implement createScaledBitmap - Widget    Sep 19, 2011
I'd like to be able to use: android.graphics.Bitmap.createScaledBitmap
to scale a bitmap using... results. ;)
createScaledBitmap(Bitmap src, int dstWidth, int dstHeight, boolean filter)
Creates a new bitmap, scaled from an existing bitmap.
See Bitmap | Android Developers
B4A Question CreateScaledBitmap filter - LucaMs    Jan 6, 2016
This function requires a boolean as Filter:
Sub CreateScaledBitmap(Original As Bitmap, Width As Int, Height As Int, Filter As Boolean) As Bitmap
Dim r As Reflector
Dim b As Bitmap
b = r.RunStaticMethod("android.graphics.Bitmap", "createScaledBitmap", _
Page: 1   2   3   4