Page 1 of 1

Progressbar for saving a picture

Posted: Tue Apr 07, 2020 5:01 pm
by pecaN
Hi,

maybe this question has been there already but I'm lazy to search :-ยจ

How would I do a traditional progressbar which would represent saving a picture ?

I mean user clicks "save", picture is being saved, it takes a few seconds, so application is blocked, is that possible ?

pecaN

Re: Progressbar for saving a picture

Posted: Wed Apr 08, 2020 9:42 pm
by SamuraiCrow
Considering that there are several means of saving pictures, such as Datatypes and system-specific libraries, it may not be possible to make the file savers pause and give a status report.

Re: Progressbar for saving a picture

Posted: Wed Apr 08, 2020 10:32 pm
by airsoftsoftwair
Yes, it's not possible. Functions like SaveBrush() save the picture in a single step without returning control to the script while saving.

Re: Progressbar for saving a picture

Posted: Fri Apr 10, 2020 5:49 pm
by pecaN
ok, thanks, no problem :-) pecaN

Re: Progressbar for saving a picture

Posted: Fri Apr 10, 2020 7:28 pm
by Juan Carlos
Maybe making a visual routine with a progress bar with the bytes copyed where the routine calculate the bytes copyed and substrat if original size file and with this date convert It to% and a visual bar.
Difficult explain but more difficult of program.