Page 1 of 1

Save Multi brushs an variables in one file

Posted: Fri Sep 14, 2018 12:29 am
by sinisrus
Hello,

For save Brushs and variables in one file i use this script
BrushToRGBArray () is too slow I have a lot of brushes
I am looking for a solution to make faster
is there another function?

Code: Select all

FOR Local L=0 TO List$-1
WriteLine(FSave,"[L]")
WriteTable(FSave,BrushToRGBArray(self[ProjectID$].Brush),0,TRUE) ; Ecrire le tableau dans le fichier
WriteLine(FSave,"\r")
WriteLine(FSave,"Name="..ToString(self[ProjectID$].Name))
WriteLine(FSave,"Show="..self[ProjectID$].Show)
WriteLine(FSave,"Lock="..self[ProjectID$].Lock)
NEXT

Thank you

Re: Save Multi brushs an variables in one file

Posted: Sun Sep 16, 2018 10:35 pm
by airsoftsoftwair
Why don't you save the brush in a standard format instead of raw pixels? BrushToRGBArray() is the bottleneck here since it creates a huge table with a new entry for each pixel...