using a bitmap object would the Resize function achieve the result of resizing the bitmap a code snippet shown below
bitmap resize and save as jpg:
Dim bmpnew0 As Bitmap
Dim bmpnew As Bitmap
bmpnew0 = LoadBitmap(File.DirAssets, "SomeFile.jpg"))
bmpnew=bmpnew0.Resize(320,240,True)
out = File.OpenOutput(File.DirInternal, "tmpfile2.jpg", False)
bmpnew.WriteToStream(out, 100, "JPEG")
Many thanks Erel I will utilise your suggestion as primary given your insight. Although for images 3mb or less it seems to work well using the previous method
Wrapper is based on Thumbnailator v0.4.20 from HERE. Features: Create high-quality thumbnails from existing images. Option to embed a watermark (such as a logo) in the thumbnails. Transparency of the watermark is adjustable from transparent (0%) to opaque (100%). Supports rotation of...
I see this is a library for B4J; the question here is about B4A, and it MAYBE wouldn't handle very large images well (but since it's for B4J - Desktop, that shouldn't be a problem).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.