Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Operating Systems
»
Android
»
LAMW: Save images from jImageList or jImageView
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
IRC channel
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
JEDI error but unit compi...
by
Roland57
[
Today
at 11:50:11 am]
Using KeyPress event, how...
by
Bart
[
Today
at 11:32:53 am]
Configure JCF messages
by
DomingoGP
[
Today
at 11:26:55 am]
IDE instability on Raspbe...
by
rvk
[
Today
at 10:37:14 am]
Boleeman's projects are p...
by
AlexTP
[
Today
at 10:18:04 am]
Understanding and adjusti...
by
circular
[
Today
at 09:55:30 am]
Your best UI design - con...
by
circular
[
Today
at 09:36:11 am]
ZeosDBO and querys using ...
by
Zvoni
[
Today
at 09:27:17 am]
STARS with line border st...
by
Boleeman
[
Today
at 09:13:29 am]
Any upgrades to fpWeb pag...
by
AlexTP
[
Today
at 08:10:55 am]
Zeos components. Had to c...
by
dbannon
[
Today
at 07:26:11 am]
A button require administ...
by
Fibonacci
[
Today
at 05:57:21 am]
How to detect one externa...
by
d2010
[
Today
at 12:24:32 am]
Center Lost Window featur...
by
Tony Stone
[
Today
at 12:06:16 am]
Complex package installat...
by
wp
[March 27, 2024, 10:47:45 pm]
Controlling the behavior ...
by
wp
[March 27, 2024, 10:43:40 pm]
A "leisure" question on W...
by
EventHorizon
[March 27, 2024, 10:18:38 pm]
need advice about the fol...
by
jamie
[March 27, 2024, 09:56:39 pm]
[SOLVED] Completion box s...
by
Martin_fr
[March 27, 2024, 08:44:09 pm]
Dialog ShowModal and an i...
by
d7_2_laz
[March 27, 2024, 08:25:18 pm]
Offical launch of the 1 B...
by
Gustavo 'Gus' Carreno
[March 27, 2024, 07:41:48 pm]
Problem setting length of...
by
Remy Lebeau
[March 27, 2024, 05:41:10 pm]
TDBLookupcombobox seems u...
by
Fantablup
[March 27, 2024, 05:18:04 pm]
Poll: Watches and Display...
by
Martin_fr
[March 27, 2024, 03:58:57 pm]
Help needed with Cairo / ...
by
AL
[March 27, 2024, 02:35:10 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: LAMW: Save images from jImageList or jImageView (Read 2589 times)
c4p
Full Member
Posts: 157
LAMW: Save images from jImageList or jImageView
«
on:
April 15, 2018, 01:45:50 am »
What's the best way to save a single PNG/image from a jImageList array or jImageView, tried a few ways using SaveToFile and no luck so far, having a bad day, path not important I can handle that
Logged
Lazarus 2.0.12 r64642/FPC 3.2.0 LAMW v0.8.6.4 on Windows 10+Linux Mint 21.2, projects mainly built using AppCompat and Gradle v8.5
jmpessoa
Hero Member
Posts: 2297
Re: LAMW: Save images from jImageList or jImageView
«
Reply #1 on:
April 15, 2018, 03:40:47 am »
If Your "jImageView" has/show some image, you can try: [save to device "download" folder]
Code: Pascal
[Select]
[+]
[-]
procedure
TAndroidModule1
.
jButton1Click
(
Sender
:
TObject
)
;
begin
if
jImageView1
.
GetBitmapImage
(
)
<>
nil
then
jImageFileManager1
.
SaveToFile
(
jImageView1
.
GetBitmapImage
(
)
,
GetEnvironmentDirectoryPath
(
dirDownloads
)
,
'myImage.png'
)
;
end
;
Logged
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard
c4p
Full Member
Posts: 157
Re: LAMW: Save images from jImageList or jImageView
«
Reply #2 on:
April 15, 2018, 11:00:58 am »
Slap head moment! thank you! that works as does jImageList.
«
Last Edit: April 15, 2018, 11:16:34 am by c4p
»
Logged
Lazarus 2.0.12 r64642/FPC 3.2.0 LAMW v0.8.6.4 on Windows 10+Linux Mint 21.2, projects mainly built using AppCompat and Gradle v8.5
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Operating Systems
»
Android
»
LAMW: Save images from jImageList or jImageView
TinyPortal
© 2005-2018